12.06.2012, 17:21
Hi guys, I want to make a jetpack cmd but only for 1team...
I got this error:
D:\SA-MP\Test\gamemodes\New1.pwn(432) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
---------------------------------------------------------
Here is the code:
426: CMD:jetpack(playerid, params[])
427: {
428: if(PlayerTeam[playerid] != Spectator ) return SendClientMessage(playerid,COLOR_RED,"[INFO]: {FFFFFF} you are not a Spectator");
429: {
430: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
431: }
432: else
433: {
434: SendClientMessage(playerid, COLOR_RED, "Error: Only Spectator can use this CMD.");
435: }
436: return 1;
437: }
Best Regards. ^_^
I got this error:
D:\SA-MP\Test\gamemodes\New1.pwn(432) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
---------------------------------------------------------
Here is the code:
426: CMD:jetpack(playerid, params[])
427: {
428: if(PlayerTeam[playerid] != Spectator ) return SendClientMessage(playerid,COLOR_RED,"[INFO]: {FFFFFF} you are not a Spectator");
429: {
430: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
431: }
432: else
433: {
434: SendClientMessage(playerid, COLOR_RED, "Error: Only Spectator can use this CMD.");
435: }
436: return 1;
437: }
Best Regards. ^_^