SA-MP Forums Archive
Whats Creating This Problem - 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: Whats Creating This Problem (/showthread.php?tid=300975)



Whats Creating This Problem - Shockey HD - 02.12.2011

pawn Код:
if(PlayerInfo[playerid][pGang] == 1)
    {
        SetPlayerColor(playerid,COLOR_RED);
    }
    else if(PlayerInfo[playerid][pGang] == 2)
    {
        SetPlayerColor(playerid,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pGang] == 3)
    (
        SetPlayerColor(playerid,COLOR_PURPLE);
    }



Re: Whats Creating This Problem - CSSI - 02.12.2011

Whats The Problem?


Re: Whats Creating This Problem - Shockey HD - 02.12.2011

Derppp,

pawn Код:
C:\Users\Chris\Desktop\Server\gamemodes\Gangwar.pwn(628 -- 629) : error 001: expected token: ")", but found ";"
C:\Users\Chris\Desktop\Server\gamemodes\Gangwar.pwn(631) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: Whats Creating This Problem - SmiT - 02.12.2011

pawn Код:
if(PlayerInfo[playerid][pGang] == 1)
    {
        SetPlayerColor(playerid,COLOR_RED);
    }
    else if(PlayerInfo[playerid][pGang] == 2)
    {
        SetPlayerColor(playerid,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pGang] == 3)
    ( // <----------------
        SetPlayerColor(playerid,COLOR_PURPLE);
    }



Re: Whats Creating This Problem - Shockey HD - 02.12.2011

Curse My Eyes, Thank you.