Quote:
Originally Posted by Calgon
Don't bump your thread so quickly. It's unfair to the others that are asking for help.
pawn Код:
CMD:unjail(playerid, params[]) { new id; if(PlayerInfo[playerid][pAdminLevel] < 4) return SendClientMessage(playerid,COLOR_GREY,"You are not allowed to use this command!"); { if(sscanf(params, "u", id))SendClientMessage(playerid, COLOR_WHITE, "/unjail [PLAYERID]"); else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); { SpawnPlayer(id); SendClientMessage(id,0xFF0000FF,"You have been unjailed by an admin."); new gName[MAX_PLAYER_NAME],string[128]; GetPlayerName(playerid,gName,sizeof gName); format(string,sizeof string,"You Unjailed player %s",gName); SendClientMessage(playerid,0x00ff00ff,string); } } return 1; }
Your code tried to unload the 'u' parameter in to playerid, so id would always equal 0, and the id would become playerid.
|
So to change "u" to "s[124]" am i right?And to make String[124]?