Quote:
Originally Posted by AtItsMax
Use sscanf.
an example to use Giveplayerid with it.
pawn Код:
CMD:mycommand(parameters) // our command { // starting bracket new thisisplayerid,money; // NOTE: thisisplayerid is used as an example if(sscanf(params,"ud",thisisplayerid,money)) return SendClientMessage(playerid,-1,"/mycommand [giveplayerid] [moniez]"); // our sscanf example, you can use this to apply function on players. GivePlayerMoney(playerid,money); // Gives the specified playerid the money you write in /mycommand [giveplayerid] [money] return 1; // returns true } // close of bracket
I hope this explains you the usage of giveplayerid.
|
Im Know With sscanf but i doesnt want work with this include, have another way to do this !