need help with some Errors please
#2

You mistakenly made pAdmin global:
pawn Код:
....
stock GetName(playerid)
{
    new name[24];
    GetPlayerName(playerid,name,sizeof(name));
    return name;
}

new pAdmin[MAX_PLAYERS];//<----
CMD:makeadmin(playerid,params[])
....
You should put the "new pAdmin[MAX_PLAYERS];" inside your /makeadmin command, like you did with the other commands (right now it's global, which is causing all those errors).
Reply


Messages In This Thread
need help with some Errors please - by Alexy_Dramon - 18.03.2012, 19:52
Re: need help with some Errors please - by Mikkel_Pedersen - 18.03.2012, 19:55
Re: need help with some Errors please - by Alexy_Dramon - 18.03.2012, 21:52
Re: need help with some Errors please - by Alexy_Dramon - 18.03.2012, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)