24.09.2011, 02:33
simples,usa sscanf:
pawn Код:
if(strcmp(cmd, "/darhelper", true) == 0)
{
new Giveid;
if(sscanf(params, "u", Giveid)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /darhelper [id]");
if(Giveid == INVALID_PLAYER_ID) return 1;
PlayerInfo[Giveid][pHelper] = 1;
return 1;
}