ALL The commands Just stop working EXPECT RCON.
#1

Well, after i type on command, all the other commands just STOP working.
Whats the problem?-.-
Command is
/givemexc ( Gives player 1XC to test /xcash )
Lines :
pawn Код:
if (strcmp(cmd, "/givemexc", true) == 0)
    {
      SendClientMessage(playerid, COLOR_YELLOW, "{ ! } You earned 1 XCash!");
      SetPlayerXcash(playerid, 1);
      return 1;
    }
Reply
#2

Show your SetPlayerXcash() function
Reply
#3

Nevermind <<<<<<<<<<<<<<<<<<<<<
I edited it, got it fixed.
now its
pawn Код:
if (strcmp(cmd, "/givemexc", true) == 0)
    {
      SendClientMessage(playerid, COLOR_YELLOW, "{ ! } You earned 1 XCash!");
      PlayerInfo[playerid][pXcash]++;
      return 1;
    }
btw it was
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)