SA-MP Forums Archive
pawn error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: pawn error (/showthread.php?tid=413026)



pawn error - Geeboi_Mehdi - 03.02.2013

Look:
pawn Код:
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : warning 225: unreachable code
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : error 017: undefined symbol "cmd_clearchat"
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5088) : 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.
PART is:
pawn Код:
COMMAND:clearchat(playerid,params[])
{
   if(PlayerInfo[playerid][pAdmin] == 1) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be level 1 to use this command!");
{
     for(new i = 0; i <= 100; i ++ ) SendClientMessageToAll( -1, "" );
     return 1;
}
}



Re: pawn error - T0pAz - 03.02.2013

Learn to indent code.

pawn Код:
CMD:clearchat(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] == 1) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be level 1 to use this command!");
    {
        for(new i = 0; i <= 100; i++) SendClientMessageToAll(-1, "");
       
        return 1;
    }
}



Re: pawn error - Geeboi_Mehdi - 03.02.2013

same thing
pawn Код:
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5103) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5103) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5103) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5103) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Trucking Life\pawno\include\PPC_PlayerCommands.inc(5103) : 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.



Re: pawn error - DerickClark - 03.02.2013

Код:
CMD:clearchat(playerid, params[])
{
    if(APlayerData[playerid][PlayerLevel] < 3) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You must be level 1 to use this command!");
    {
        for(new i = 0; i <= 100; i++) SendClientMessageToAll(-1, "");
        return 1;
    }
}



Re: pawn error - Geeboi_Mehdi - 03.02.2013

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Код:
CMD:clearchat(playerid, params[])
{
    if(APlayerData[playerid][PlayerLevel] < 3) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You must be level 1 to use this command!");
    {
        for(new i = 0; i <= 100; i++) SendClientMessageToAll(-1, "");
        return 1;
    }
}
worked thanks! rep +