SERVER: Unknown Command, execution stops - 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: Unknown Command, execution stops (
/showthread.php?tid=78444)
SERVER: Unknown Command, execution stops -
CracK - 20.05.2009
pawn Код:
//top of the script
#define RATING_PLACES 200
enum ValueData
{
fValue,
fName[MAX_PLAYER_NAME]
}
new Temp[RATING_PLACES][ValueData];
//in one of my functions
if(value > Temp[i][fValue] || !Temp[i][fValue])
{
if(strcmp(playername, Temp[i][fName],false))
{
for (new j=RATING_PLACES-1; j > i; j--)
{
Temp[j][fValue] = Temp[j-1][fValue]; //from here loop stops working and all the code below is not executed
set(Temp[j][fName],Temp[j-1][fName]);
}
}
//sendclientmessage here
//instead of it ^, I got "SERVER: Unknown Command"
}
The script compiles perfectly with no errors and warnings
That's confusing, I thought it might be something with #pragma dynamic, but...
Help,please...