SA-MP Forums Archive
Checking players money - 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: Checking players money (/showthread.php?tid=78028)



Checking players money - Sal_Kings - 16.05.2009

Hey i am new to scripting and i know i ask alot of questions, I know how to check my own money but not another players please edit this script so it works to check other players money by typing /checkmoney id

Код:
if (strcmp("/checkmoney", cmdtext, true, 10) == 0)
{
 GetPlayerMoney(playerid,);
 return 1;
}



Re: Checking players money - mamorunl - 16.05.2009

You have 2 options for that: dcmd and sscanf is the perfect combination because it saves you a lot of time. Both functions can either be found on this forum or on the wiki.

I hope I've been helping you with this answer.