07.10.2010, 22:40
How can you honestly be so clueless?
You're checking if they ARE an admin and THEN not letting them use the command.
Although you're new to zcmd/sscanf, common sense still should apply.
You're checking if the user is(n't) connected before you've parsed a value to the variable, therefore the ID is constantly 0 and the command is only going to work for ID 0. Plus, the variable you want to use is 'otherID' I assume.
Why?! You're not even using 64 cells in the format function...
Use 'u', not 'r'.. You only have one parameter, what's with the triple usage of 'i'?
pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 1){return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
Although you're new to zcmd/sscanf, common sense still should apply.
pawn Код:
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "* Invalid player ID!");
pawn Код:
new string[256];
pawn Код:
if(sscanf(params, "rii", otherId))