Quote:
Originally Posted by fordawinzz
zcmd + sscanf = easy job.
pawn Код:
command(sellhouse, playerid, params[]) { new giveplayerid, price; if(!IsPlayerConnected(playerid)) return 0; if(sscanf(params, "ui", giveplayerid, price)) return SendClientMessage(playerid, ~1, "Usage: /sellhouse (playerid) (price)"); if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, ~1, "That player is not online."); //codul tau return 1; }
|
ce zici daca mai prescurtezi prima linie
)
PHP код:
CMD:sellhouse(playerid, params[]) xD