Some errors
#4

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
Okey thanks and now one more help.

Код:
CMD:annc(playerid, params[])
{
        if(PlayerInfo[playerid][AdminLevel] >= 3)
        {
            new msg[200];
                if (sscanf(params, "s[200]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /annc [message/announce]");
                if (IsPlayerConnected(playerid))
                {
                    GameTextForAll(msg, 5000, 5);
                    SendCommandToAdmins(playerid,"/annc");
                }
        }
        else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast admin level 3 to use this command");
        return 1;
}
errors:
Код:
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 017: undefined symbol "PlayerInfo"
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : warning 215: expression has no effect
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 001: expected token: ";", but found "]"
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 029: invalid expression, assumed zero
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
I ahve to put any "new" or define?
Try

Код:
 if(PlayerInfo[playerid][AdminLevel] >= 3)
to

Код:
if(pInfo[playerid][AdminLevel] >= 3)
Reply


Messages In This Thread
Some errors - by Tuntun - 05.11.2013, 05:01
Re: Some errors - by -=Dar[K]Lord=- - 05.11.2013, 05:05
Re: Some errors - by Tuntun - 05.11.2013, 06:20
Re: Some errors - by gotwarzone - 05.11.2013, 06:28
Re: Some errors - by Tuntun - 05.11.2013, 06:31
Re: Some errors - by gotwarzone - 05.11.2013, 06:36
Re: Some errors - by Tuntun - 05.11.2013, 06:39
Re: Some errors - by gotwarzone - 05.11.2013, 06:40
Re: Some errors - by -=Dar[K]Lord=- - 05.11.2013, 06:42
Re: Some errors - by Tuntun - 05.11.2013, 07:05

Forum Jump:


Users browsing this thread: 1 Guest(s)