SA-MP Forums Archive
error 029: invalid expression, assumed zero - 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: error 029: invalid expression, assumed zero (/showthread.php?tid=661017)



error 029: invalid expression, assumed zero - JohnFlores - 19.11.2018

I need fix it. please helpme.
Quote:

D:\IMRP\IMRPFile\gamemodes\ModernRoleplayBackup.pw n(8175) : error 029: invalid expression, assumed zero
D:\IMRP\IMRPFile\gamemodes\ModernRoleplayBackup.pw n(8175) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Quote:

else(strlen(aDuty[playerid])) format(string, sizeof(string), "(( {FF0000}%s {FFFFFF}%s: {E0FFFF}%s ))", RPAL(playerid), NORPN(playerid), text);




Re: error 029: invalid expression, assumed zero - Mencent - 19.11.2018

Hello!

Does it work like this?
PHP код:
else if(strlen(aDuty[playerid]))format(string,sizeof(string),"(({FF0000} %s {FFFFFF}%s:{E0FFFF} %s ))",RPAL(playerid),NORPN(playerid),text);