/givecash problem easy?
#2

Here's an example using DCMD and SSCANF (only ones I use)

pawn Код:
dcmd_give(playerid, params[])
{
new str[15], id, val
if(!sscanf(params, "sud", str, id, val))
{
if(!strcmp(str,"money",true))
{
GivePlayerMoney(id, val);
return 1;
}
else return SendClientMessage(playerid, color, "Usage: /give <money> <Playername/ID> <amount>");
}
That would be

Код:
/give money Joe_ 5000
Lol, sorry you updated your post before I made this.
Reply


Messages In This Thread
/givecash problem easy? - by hardstop - 26.05.2010, 20:18
Re: How to make /give something command? - by Joe_ - 26.05.2010, 20:24
Re: /givecash problem easy? - by Joe_ - 26.05.2010, 20:27
Re: /givecash problem easy? - by hardstop - 26.05.2010, 20:29
Re: /givecash problem easy? - by Joe_ - 26.05.2010, 20:31
Re: /givecash problem easy? - by hardstop - 26.05.2010, 20:32
Re: /givecash problem easy? - by Joe_ - 26.05.2010, 20:33
Re: /givecash problem easy? - by hardstop - 26.05.2010, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)