CMD problem?
#4

Your brackets are missplaced, like pretty much every other problem I encounter here on forums.
So fix those OR
Код:
COMMAND:setadminname(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 4)
	{
	    new targetid, targetNAME[MAX_PLAYER_NAME];
	    if(!sscanf(params, "us", targetid, targetNAME))
	    {
	        if(targetid == INVALID_PLAYER_ID)
	        {
	            if(PlayerInfo[targetid][pAdmin] != PlayerInfo[playerid][pAdmin])
	            {
	                SetPlayerName(targetid, targetNAME);
	                // now you create strings, and send messages to both ends.
	            }
	        }
	    }
	}
	return 1;
}
Reply


Messages In This Thread
CMD problem? - by N0FeaR - 01.06.2012, 14:00
Respuesta: CMD problem? - by Chris1337 - 01.06.2012, 14:14
Re: CMD problem? - by sampmark05 - 01.06.2012, 14:16
Re: CMD problem? - by Sandiel - 01.06.2012, 14:57
Re: CMD problem? - by ViniBorn - 01.06.2012, 15:08
Re: CMD problem? - by N0FeaR - 01.06.2012, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)