ALL The commands Just stop working EXPECT RCON. - 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: ALL The commands Just stop working EXPECT RCON. (
/showthread.php?tid=140365)
ALL The commands Just stop working EXPECT RCON. -
DaHP14Y3R - 08.04.2010
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;
}
Re: ALL The commands Just stop working EXPECT RCON. -
dice7 - 08.04.2010
Show your SetPlayerXcash() function
Re: ALL The commands Just stop working EXPECT RCON. -
DaHP14Y3R - 08.04.2010
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];
}