19.10.2012, 12:42
Hey guys as the title says, how can I make something like that? I tried it and this is the result:
I read Yini's topic but I didin't understand on how to get something like the one I got above, thanks for reading.
Regards,
gtakillerIV.
PHP код:
CMD:getmoney(playerid,params[])
{
new filestring[55], aname[128];
if(sscanf(params,"s[128]", aname)) return SendClientMessage(playerid, Yellow, "Correct Usage: /getmoney [Player's Name]");
format(filestring,sizeof(filestring), "/Users/%s.ini", aname);
if(!fexist(filestring)) return SendClientMessage(playerid, Yellow, "That account doesn't exist!");
else
{
new cash; //As you see I made this to store the player's cash inside it.
//What Goes here?
new moneystr[40];
format(moneystr, sizeof(moneystr), "Player's Money : %i", cash);
SendClientMessage(playerid,Lime,moneystr);
}
return 1;
}
Regards,
gtakillerIV.