Errors
#4

pawn Код:
if (strcmp("/lsa", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid) == 1)
        {
        SetPlayerPos(playerid, 1990.6156,-2335.7556,13.5469);
        SetPlayerFacingAngle(playerid, 82.8390);
        SendClientMessage(playerid, COLOR_GREEN, "You have been teleported.");
        }
    else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You are not Administrator/Moderator");

    return 0;
}
You need an if statement if you want to use an else, and you need to put the statement in the form of a condition.
Reply


Messages In This Thread
Errors - by Anzhelov - 07.01.2011, 21:14
Re: Errors - by Doom8890 - 07.01.2011, 21:17
Re: Errors - by Anzhelov - 07.01.2011, 21:21
Re: Errors - by John_F - 07.01.2011, 21:21
Re: Errors - by Anzhelov - 07.01.2011, 21:23
Re: Errors - by John_F - 07.01.2011, 21:25
Re: Errors - by Anzhelov - 07.01.2011, 21:27
Re: Errors - by John_F - 07.01.2011, 21:28
Re: Errors - by Anzhelov - 07.01.2011, 21:30
Re: Errors - by John_F - 07.01.2011, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)