08.08.2010, 20:41
Fui compila o meu gm, e o Pawno apontou esse erros
O Erro estб nessas linhas.
Especialmente nessas linhas
Se puderem me ajudar, sou grato.
pawn Код:
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(218) : warning 225: unreachable code
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(218) : warning 217: loose indentation
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(218) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(218 -- 220) : warning 215: expression has no effect
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(220) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(220) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Leandro novo\Desktop\Server novo\gamemodes\monster.pwn(220) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new name[256];
new string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Morreu.", name);
SendClientMessageToAll(COLOR_RED, string);
SendDeathMessage(killerid, playerid, reason);
return 0;
)
public OnPlayerText(playerid, text[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName,sizeof(pName));
format(string,sizeof(string),"%s[%i]: %s",pName,playerid,text);
printf(string);
SendClientMessageToAll(COLOR_WHITE,string);
return 0;
}
pawn Код:
)
public OnPlayerText(playerid, text[])