17.02.2012, 23:20
(
Последний раз редактировалось DarkyTheAngel; 18.02.2012 в 00:24.
)
Hey guys ! I'm not good at error so can someone how to fix this errors :
Command :
Thanks !
pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(170) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1581) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1621) : error 010: invalid function or declaration
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : warning 225: unreachable code
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 017: undefined symbol "cmd_nrg"
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : fatal error 107: too many error messages on one line.
pawn Код:
CMD:nrg(playerid,params[]){ // This is the line with errors.
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
if(IsPlayerInAnyVehicle(playerid))
SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
else
{
new Float:x, nrg,Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
PutPlayerInVehicle(playerid, nrg, 0);
GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
}
return 1;
}