SA-MP Forums Archive
Invalid expression - 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: Invalid expression (/showthread.php?tid=504522)



Invalid expression - ryansheilds - 04.04.2014

Anyone see where the problem is, need a second set of eyes on this

pawn Код:
if(playerData[playerid][pAccent] == 1 && playerData[playerid][pChat] == 1){
            format(szMessage, sizeof szMessage, "%s says: %s", getPlayerName(playerid), text);
            ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,0,0,1,1);
        else
            format(szMessage, sizeof szMessage, "(%s accent) %s says: %s", GetPlayerAccent(playerid), getPlayerName(playerid), text);

        ProxDetector(20.0, playerid,szMessage, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, 1);
        }



Re: Invalid expression - iThePunisher - 04.04.2014

your problem is at else
try this
pawn Код:
}
  else
{