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



invalid expression, assumed zero - Janpatrick22 - 17.11.2018

Please help me with this.

Code:
if((!isnull(PlayerInfo[playerid][pCustomTitle]) && strcmp(PlayerInfo[playerid][pCustomTitle], "None", true) != 0 && strcmp(PlayerInfo[playerid][pCustomTitle], "0", true) != 0) {
Code:
if((!isnull(PlayerInfo[playerid][pCustomTitle]) && strcmp(PlayerInfo[playerid][pCustomTitle], "None", true) != 0 && strcmp(PlayerInfo[playerid][pCustomTitle], "0", true) != 0) {
Code:
if((!isnull(PlayerInfo[playerid][pCustomTitle]) && strcmp(PlayerInfo[playerid][pCustomTitle], "None", true) != 0 && strcmp(PlayerInfo[playerid][pCustomTitle], "0", true) != 0) {



Re: invalid expression, assumed zero - Mencent - 17.11.2018

Hello!

What's with that?
Do you get any errors?


Re: invalid expression, assumed zero - Joe Staff - 17.11.2018

Count your opening and closing brackets. I believe you have an extra '(' near the beginning.


Re: invalid expression, assumed zero - Janpatrick22 - 17.11.2018

Quote:
Originally Posted by Joe Staff
View Post
Count your opening and closing brackets. I believe you have an extra '(' near the beginning.
Found that the ( was too many and it already compile thanks