#1

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. ^_^
Reply
#2

Help...
Reply
#3

What include you use to make this command?
Reply
#4

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.
Reply
#5

Код:
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;
}
Reply
#6

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..!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)