Server Commands stop working, when typed a command - 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: Server Commands stop working, when typed a command (
/showthread.php?tid=140338)
Server Commands stop working, when typed a command -
DaHP14Y3R - 08.04.2010
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
Re: Server Commands stop working, when typed a command -
Thrarod - 08.04.2010
Cant see anythin wrong :S
Re: Server Commands stop working, when typed a command -
DaHP14Y3R - 08.04.2010
GivePlayerXcash.
pawn Код:
stock GivePlayerXcash(playerid, money)
{
Xcash[playerid] += money;
ResetMoneyBar(playerid);
UpdateMoneyBar(playerid,Xcash[playerid]);
return Xcash[playerid];
}