[AJUDA] Erro Pawno
#1

Fui compila o meu gm, e o Pawno apontou esse erros

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.
O Erro estб nessas linhas.
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;
}
Especialmente nessas linhas
pawn Код:
)

public OnPlayerText(playerid, text[])
Se puderem me ajudar, sou grato.
Reply
#2

Код:
}

public OnPlayerText(playerid, text[])
{
Tenta agora
Reply
#3

Vlw cara, funciono. Sempre me acontece esses erros.
Reply
#4

Nads ^^

o problema era ) ai substitui por }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)