need help with little thing - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with little thing (
/showthread.php?tid=252025)
need help with little thing -
the_zande - 29.04.2011
Okayy so thats so simple but my command is not working anymore because I changed the strcmp -> zcmd and now I have this
so how I can add this on zcmd? should I put it in sscanf or what xdxd
Re: need help with little thing - [L3th4l] - 29.04.2011
Simple:
pawn Код:
CMD:test(playerid, params[])
{
if(isnull(params)) return 0;
new
ID = strval(params);
if(!IsPlayerConnected(ID)) return 0;
GivePlayerWeapon(ID, 24, 500);
return 1;
}
Usage: /Test < Player ID >
Re: need help with little thing -
alpha500delta - 29.04.2011
Well if you use ZCMD you should use SSCANF also.
But it's better to do it with "isnull" as [L3th4l] said.
pawn Код:
if (sscanf(params, "u", ID)) return SendClientMessage(playerid, COLOR, "Usage: /something [playerid]");
Re: need help with little thing -
the_zande - 29.04.2011
yeaah that works

wohoooo thanks