12.04.2011, 14:38
How do I convert "id" to be 'compatible' with playerid?
because I get a warning.. :\
because I get a warning.. :\
COMMAND:troll(playerid)
new id;
if (playerid = id) {
....
}
COMMAND:troll(playerid,params[])
{
new id,string[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, RED, "USO: /TROLL [ID]");
if (id == playerid) return SendClientMessage(playerid, RED, "Id its you!");
format(string,sizeof(string),"Id selected is %d",id);
SendClientMessage(playerid, RED, string);
return 1;
}