symbol is never used: "params"
#8

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Код:
CMD:adcc(playerid, params[])
{
 	if(PlayerInfo[playerid][pAdmin] >= 1) //Change this
	{
	    new strg[128];
        for(new i = 0; i < 200; i++) SendClientMessageToAll(-1," ");
	    format(strg, sizeof strg, "Admininstrator has cleared the chat!");
	    SendClientMessageToAll(COLOR_LIGHTBLUE, strg);
	}
	return 1;
}
Код:
CMD:admins(playerid, params[])
{
    new pname[MAX_PLAYER_NAME], string[60],counter=0;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdmin] >= 1)
            {
            counter+=1;
            GetPlayerName(i, pname, sizeof(pname));
            format(string, sizeof(string), "Admin: %s ID: %d", pname, i);
            }
        }
    }
    if(counter != 0)
    {
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "No Admins are Online at the moment.");
    return 1;
    }
    return 1;
}
PHP код:
C:\Users\Matt\Desktop\SAMP\PJS\gamemodes\PJS.pwn(5455) : error 017undefined symbol "pAdmin"
C:\Users\Matt\Desktop\SAMP\PJS\gamemodes\PJS.pwn(5485) : error 017undefined symbol "pAdmin"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

Reply


Messages In This Thread
Cannot be Access - by Team_PRO - 01.07.2014, 10:10
Re: symbol is never used: "params" - by BroZeus - 01.07.2014, 10:14
Re: symbol is never used: "params" - by Jack_Leslie - 01.07.2014, 10:24
Re: symbol is never used: "params" - by BlackSirrah239 - 01.07.2014, 10:24
Re: symbol is never used: "params" - by Team_PRO - 01.07.2014, 10:44
Re: symbol is never used: "params" - by Team_PRO - 01.07.2014, 11:33
Re: symbol is never used: "params" - by Rittik - 01.07.2014, 11:45
Re: symbol is never used: "params" - by Team_PRO - 01.07.2014, 11:52
Re: symbol is never used: "params" - by Rittik - 01.07.2014, 12:07
Re: symbol is never used: "params" - by Team_PRO - 01.07.2014, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)