Page 1 of 1

izlasat....

Posted: 14 Nov 2009, 14:51
by funny
sveiki es liku ieksa bazi a man bija 3 error

Code: Select all

#include 
new mainigais;
new baze;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");

public OnGameModeInit()
mainigais = 0;
baze = CreateObject(972, -1383.486816, -573.268127, 13.145319, 0.8594, 353.1245, 285.6245);
CreateObject(3816, -1457.956299, -580.542419, 21.693756, 0.0000, 0.0000, 112.5001);
CreateObject(3816, -1309.402466, -512.138733, 22.142006, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1437.476929, -557.326355, 29.309620, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1414.753052, -582.862915, 29.298584, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1422.869629, -573.202026, 29.302265, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1414.312378, -550.661987, 29.298584, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1405.865479, -509.066193, 28.235947, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1392.156982, -538.398010, 13.183819, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1391.132690, -561.783447, 29.294903, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1375.599121, -539.390015, 29.283859, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1366.678589, -539.539429, 29.287540, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1366.964478, -539.058533, 29.287540, 0.0000, 0.0000, 292.5000);
CreateObject(8417, -1354.186646, -520.055176, 29.283859, 0.0000, 0.0000, 22.5000);
CreateObject(8417, -1354.618652, -547.660950, 29.283863, 0.0000, 0.0000, 22.5000);
CreateObject(8417, -1333.562256, -550.079834, 29.280182, 0.0000, 0.0000, 22.5000);
CreateObject(8417, -1408.836304, -493.570007, 13.183821, 91.1003, 0.0000, 202.5000);
CreateObject(8417, -1336.281128, -558.706665, 13.183819, 91.1003, 0.0000, 202.5000);
CreateObject(8417, -1416.237671, -589.555725, 13.310575, 91.1003, 0.0000, 202.5000);
CreateObject(8417, -1405.204834, -584.945374, 13.183819, 91.1003, 0.0000, 202.5000);
CreateObject(8417, -1352.571411, -565.218262, 13.179348, 91.1003, 0.0000, 202.5000);
CreateObject(974, -1384.727783, -576.257324, 23.575241, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1384.089844, -576.122437, 27.264145, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1379.870972, -575.006897, 23.518953, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1379.545410, -574.934143, 26.328335, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1373.945190, -573.371338, 23.438196, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1373.596436, -573.294006, 27.007351, 0.0000, 0.0000, 11.2500);
CreateObject(974, -1379.092896, -574.821899, 23.270868, 0.0000, 0.0000, 11.2500);
    
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/wnkbaze", cmdtext, true, 9) == 0) {
    new Nick[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nick, sizeof(Nick));
    if(strfind(Nick, "Wnk.", true) != -1) {
    if(mainigais == 0) {
    SendClientMessage(playerid, 0x33AA33AA,"Baze ir atverta");
    MoveObject(baze, -1383.486816, -573.268127, 24.145319, 3); //vala
    mainigais = 1;
    } else if(mainigais == 1) {
    SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta");
    MoveObject(baze, -1383.486816, -573.268127, 13.145319, 3); //ciet
    mainigais = 0;
}
}
    return 1;
}
un mani errori ir sadi

Code: Select all

G:\gtasan andreas and server\latvian server\filterscripts\wnkbaze.pwn(11) : warning 217: loose indentation
G:\gtasan andreas and server\latvian server\filterscripts\wnkbaze.pwn(11) : error 029: invalid expression, assumed zero
G:\gtasan andreas and server\latvian server\filterscripts\wnkbaze.pwn(11) : error 004: function "OnGameModeInit" is not implemented
G:\gtasan andreas and server\latvian server\filterscripts\wnkbaze.pwn(42) : warning 217: loose indentation
G:\gtasan andreas and server\latvian server\filterscripts\wnkbaze.pwn(63) : error 030: compound statement not closed at the end of file (started at line 47)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

varetu izlabot plzz un ierakstit ka ir pareizi

Re: izlasat....

Posted: 14 Nov 2009, 15:25
by heisyournewgod
Lietotāji, kuri ir publicējuši ar šo IP
nike_nike [ 13 Atbildes ] Meklēt
funny [ 1 Atbildēt ]
:D
fail

Re: izlasat....

Posted: 14 Nov 2009, 16:08
by Stailers[BoxG]
Šim vajadzētu strādāt - Pastebin

Re: izlasat....

Posted: 14 Nov 2009, 16:41
by funny
daudz mazak erroru bet vell viens i

Code: Select all

G:\gtasan andreas and server\latvian server\filterscripts\Wnkbaze.pwn(4) : fatal error 100: cannot read from file: "Y_Objects"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Re: izlasat....

Posted: 14 Nov 2009, 18:16
by [AoD]Aleksis
kāda jēga bija lietot strīmeri, ja viņam nepārsniedz objektu limitu? Pārkonvertē objektus atpakaļ uz pawn code, noņem y_objects include no augšas un nebūs tā error'a.

Re: izlasat....

Posted: 14 Nov 2009, 21:35
by funny
tnx varat lock