Quote:
Originally Posted by [TMS]Legena
Код:
new targetid;
new Playername[MAX_PLAYER_NAME];
GetPlayerName(targetid, Playername, sizeof(Playername));
if(sscanf(params,"us[64]",targetid,reason)) return SCM(playerid, 0xFF0000,"Use: {FFFFFF}/ban [ID/Nick] [Reason]"
);
Maybe will this work?
|
No, it will not. Your code will always get the name of the player with ID 0. sscanf line is supposed to be first so the ID from the parameters can be assigned on
targetid.