open.mp forum
[Pawn] Error 029 plzz help - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Error 029 plzz help (/showthread.php?tid=2412)



Error 029 plzz help - abdr37888 - 2023-06-23

D:\Abdrahman's Folder\Map\Scripts\samp037_svr_R2-1-1_win32\gamemodes\Tutori.pwn(237) : error 029: invalid expression, assumed zero
D:\Abdrahman's Folder\Map\Scripts\samp037_svr_R2-1-1_win32\gamemodes\Tutori.pwn(237 -- 238) : error 029: invalid expression, assumed zero
D:\Abdrahman's Folder\Map\Scripts\samp037_svr_R2-1-1_win32\gamemodes\Tutori.pwn(267) : error 029: invalid expression, assumed zero
D:\Abdrahman's Folder\Map\Scripts\samp037_svr_R2-1-1_win32\gamemodes\Tutori.pwn(267 -- 268) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


The wrong here:

if(PlayerInfo[playerid][pAdmin]) = 7
    {
    SetPlayerColor(playerid,COLOR_RED);
    }


How to solve it plzzz help


RE: Error 029 plzz help - Samp Nova - 2023-08-21

Try this:

Code:
if(PlayerInfo[playerid][pAdmin] == 7)
{
    SetPlayerColor(playerid,COLOR_RED);
}