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



error 029: invalid expression, assumed zero +rep. - tryingtoscript - 22.12.2012

C:\Users\Reese\Downloads\SARP\gamemodes\gtasarp.pw n(2374 -- 2375) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is the code.

print(" ");
}

forward ConnectMySQL();
public ConnectMySQL()
{
(mysql_connect(*******phpmyadmin/,*user,*DB,*Pass));
return 1;
}

Any sugestions?


Re: error 029: invalid expression, assumed zero +rep. - tryingtoscript - 22.12.2012

"(*******phpmyadmin/,*user,*DB,*Pass" and that isn't the real info by the way


Re: error 029: invalid expression, assumed zero +rep. - B-Matt - 22.12.2012

2374 - where is this line? And give me 2373


Re: error 029: invalid expression, assumed zero +rep. - tryingtoscript - 22.12.2012

forward ConnectMySQL();
public ConnectMySQL()
{
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS )); -Line 2374
{
printf("SUCCES: Conexiunea la baza de date `%s` a fost stabilita!",SQL_DB); -line 2375
}
else
{
printf("EROARE: Conexiunea la baza de date `%s` a dat gres!",SQL_DB);
}
return 1;
}


Re: error 029: invalid expression, assumed zero +rep. - B-Matt - 22.12.2012

PHP код:
forward ConnectMySQL();
public 
ConnectMySQL()
{
if(
mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS ))
{
printf("SUCCES: Conexiunea la baza de date `%s` a fost stabilita!",SQL_DB);
}
else
{
printf("EROARE: Conexiunea la baza de date `%s` a dat gres!",SQL_DB);
}
return 
1;

You put a ";" on the end of if line xD
Try this code now.