ID Bug Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: ID Bug Help (
/showthread.php?tid=522778)
ID Bug Help -
NewbieTester - 29.06.2014
Hello , I need Help about my Server . when i do Give commands like [/give 0 cash 100] . It Won't work .. I Know It's sscanf but please give me a directlink on sscanf please . i keep searching on samp and ****** but can't still find any of them
Re: ID Bug Help - Guest4390857394857 - 29.06.2014
What CMD you are looking for? OR are you looking for a link to download sscanf?
Re: ID Bug Help -
Parallex - 29.06.2014
Click
here to download the Linux version of the sscanf.
Click
here to download the Windows version of the sscanf.
Re: ID Bug Help -
SupaVZ - 30.06.2014
We can see your code just incase you did it wrong or something..
Re: ID Bug Help -
KayJ - 30.06.2014
Quote:
Originally Posted by BenJackster
Click here to download the Linux version of the sscanf.
Click here to download the Windows version of the sscanf.
|
After that:
I know ZCMD, if you don't know don't know how to use or what is it?
Click Here for more info
Simple:
pawn Код:
//Under #include <asamp> like this-
#include <a_samp>
#include <zcmd>
//Put this code anywhere in script
CMD:givecash(playerid, params[])
{
new player, amount,name1[24], name2[24], string[128];
if(!sscanf(params, "ui",player,amount))
{
if(playerid != player)
{
if(GetPlayerMoney(playerid) >= amount)
{
GetPlayerName(playerid, name1, 24);
GetPlayerName(player, name2, 24);
format(string, sizeof(string), "Server: You gaved $%d to %s.",amount,name2);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Server: %s gave you $%d!", name1, amount);
SendClientMessage(player, -1, string);
GivePlayerMoney(playerid, -amount);
GivePlayerMoney(player, amount);
}
else return SendClientMessage(playerid, -1,"You don't have that much.");
}
else return SendClientMessage(playerid, -1,"You can't pay to yourself.");
}
else return SendClientMessage(playerid, -1,"Usage: /givecash [ID][Amount]");
return 1;
}
PS: Power cut, sorry for late editing
====
Similar topic>
Click here