Thread: /givecash
View Single Post
Old 15/02/2009, 03:55 PM   #6
rensfromrpas
Big Clucker
 
Join Date: May 2008
Posts: 102
Reputation: 0
Default Re: /givecash

you'll need strtok:
(note i didn't test it)
Code:
if(!strcmp(cmd, "/givecash", true)
{
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) return SendClientMessage(playerid, 0xC0C0C0/*samp color :)*/, "USAGE: /givecash [ammount]");
   GivePlayerMoney(playerid, strval(tmp));  
   return 1;
}
rensfromrpas is offline