Help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help. (
/showthread.php?tid=350472)
Help. -
Youtube12 - 12.06.2012
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. ^_^
AW: Help. -
Youtube12 - 12.06.2012
Help...
Re: Help. -
Smokkr - 12.06.2012
What include you use to make this command?
Re: Help. -
WillyP - 12.06.2012
You're putting it in the wrong order. Give me a few minutes to finish my current code and I'll do it for you.
Re: Help. -
kaisersouse - 12.06.2012
Код:
CMD:jetpack(playerid, params[])
{
if(PlayerTeam[playerid] != Spectator ) return SendClientMessage(playerid,COLOR_RED,"[INFO]: {FFFFFF} you are not a Spectator");
else SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
}
AW: Re: Help. -
Youtube12 - 12.06.2012
Quote:
Originally Posted by kaisersouse
Код:
CMD:jetpack(playerid, params[])
{
if(PlayerTeam[playerid] != Spectator ) return SendClientMessage(playerid,COLOR_RED,"[INFO]: {FFFFFF} you are not a Spectator");
else SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
}
|
Thank you man !!! Thats what I need..!!!!!