Server Commands stop working, when typed a command
#1

Well i tried to make my own server, it has server sided cash called XCash.
So i tried to make command /xcash and /givemexc to test the /xcash.
/xcash worked fine, but not /givemexc

Lines of /givemexc
pawn Код:
if (strcmp(cmd, "/givemexc", true) == 0)
    {
      SendClientMessage(playerid, COLOR_YELLOW, "{ ! } You earned 1 XCash!");
      GivePlayerXcash(playerid, 1);
      return 1;
    }
When i type /givemexc it says "{ ! } You earned 1 XCash" and then says "SERVER: Unknown command"
after that NONE of the commands work.
I used this :
http://forum.sa-mp.com/index.php?topic=95879.0
Reply
#2

Cant see anythin wrong :S
Reply
#3

GivePlayerXcash.
pawn Код:
stock GivePlayerXcash(playerid, money)
{
    Xcash[playerid] += money;
    ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid,Xcash[playerid]);
    return Xcash[playerid];
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)