14.02.2012, 15:24
1st error: The OnPlayerEnterRaceCheckpoint Callback is defined on Incognito's Streamer and on your GameMode.
Ignore it for now!
2nd error:remove the strtok from line 14299
Note: All these
3rd error: I think that the array sizes don't match. Can you show us the part of code that you return the result.
4th error: You already use the local variable. An example
Edit: Dimi was faster
Ignore it for now!
2nd error:remove the strtok from line 14299
Note: All these
pawn Код:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
4th error: You already use the local variable. An example
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new mod; // 1st mod
if(!strcmp(cmdtext, "/help", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
new mod; // 2nd time we are using it.
return 1;
}
return 0;
}