Checking players money
#1

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;
}
Reply
#2

You have 2 options for that:
  • using strtok
  • using dcmd
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)