Messing around with formats
#1

How do I convert "id" to be 'compatible' with playerid?
because I get a warning.. :\
Reply
#2

could you be more specific about what you mean?
Reply
#3

pawn Код:
COMMAND:troll(playerid)
new id;
if (playerid = id) {
....
}
like this :d
Reply
#4

I don't understand you... For command processing use ZCMD (yeah you do) with sscanf (for params).

Btw, when checking, you need to have two of these '='
Reply
#5

Some like this?
pawn Код:
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;
}
Reply
#6

exactly
Thanks :]
Reply
#7

np
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)