06.07.2011, 16:18
This is my code
This is my error.
Код:
COMMAND:jetpack(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][AdminLevel] >= 5)
{
SetPlayerSpecialAction(playerid, 2); //Spawns them a jetpack.
SendClientMessage(playerid, Green, "**Spawned jetpack**");
return 1;
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not allowed to use this command.");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
}
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : warning 225: unreachable code C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 029: invalid expression, assumed zero C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 017: undefined symbol "cmd_jetpack" C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 029: invalid expression, assumed zero C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
