11.12.2010, 07:15
(
Последний раз редактировалось arturo clark; 11.12.2010 в 14:38.
)
Obtengo estos errores:
Esto es lo que agregue en mi Gamemode:
Y OnPlayerDisconnect:
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.
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;
}
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;
}