їComo guardar algunas cosas?
#5

Obtengo estos errores:

pawn Код:
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(248) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(248) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(249) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(257) : error 017: undefined symbol "MAX_PLAYER_string"
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(257) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(257) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(257) : error 036: empty statement
C:\Documents and Settings\Administrador\Escritorio\Server\TDM\gamemodes\TDM.pwn(257) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Esto es lo que agregue en mi Gamemode:

pawn Код:
public OnPlayerConnect(playerid)
{
    new
        File:input,
        string[MAX_PLAYER_string + 4];
       
    GetPlayerName(playerid, string, sizeof(string));
    format(string, sizeof(string), "%s.txt", string);
    input = fopen(string, io_read);
    if(input != 0)
    {
        fread(input, string);
        Puntos[playerid] = strval(fread)
        fclose(input);
    }
    return 1;
}
Y OnPlayerDisconnect:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        File:output,
        string[MAX_PLAYER_string + 4];
       
    GetPlayerName(playerid, string, sizeof(string));
    format(string, sizeof(string), "%s.txt", string);
    output = fopen(string, io_write);
    if(output != 0)
    {
        format(string, sizeof(string), "%i", Puntos[playerid]);
        fwrite(output, string);
        fclose(output);
    }
    return 1;
}
Reply


Messages In This Thread
їComo guardar algunas cosas? - by arturo clark - 11.12.2010, 06:13
Re: їComo guardar algunas cosas? - by Miguel - 11.12.2010, 06:43
Re: їComo guardar algunas cosas? - by arturo clark - 11.12.2010, 07:07
Re: їComo guardar algunas cosas? - by Miguel - 11.12.2010, 07:10
Re: їComo guardar algunas cosas? - by arturo clark - 11.12.2010, 07:15
Re: їComo guardar algunas cosas? - by zSuYaNw - 11.12.2010, 16:05
Re: їComo guardar algunas cosas? - by arturo clark - 11.12.2010, 16:34
Re: їComo guardar algunas cosas? - by Zamaroht - 11.12.2010, 17:02
Re: їComo guardar algunas cosas? - by zSuYaNw - 11.12.2010, 17:15
Respuesta: їComo guardar algunas cosas? - by OwlCity - 11.12.2010, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)