GameMode compile problem.
#3

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
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;
}
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
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;
}
Edit: Dimi was faster
Reply


Messages In This Thread
GameMode compile problem. - by RaulSTARs - 14.02.2012, 15:11
Re: GameMode compile problem. - by [MG]Dimi - 14.02.2012, 15:20
Re: GameMode compile problem. - by Konstantinos - 14.02.2012, 15:24
Re: GameMode compile problem. - by RaulSTARs - 14.02.2012, 15:29
Re: GameMode compile problem. - by Konstantinos - 14.02.2012, 15:50
Re: GameMode compile problem. - by RaulSTARs - 14.02.2012, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)