20.05.2009, 04:38
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"
}
That's confusing, I thought it might be something with #pragma dynamic, but...
Help,please...