error 029: invalid expression, assumed zero +rep.
#1

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?
Reply
#2

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

2374 - where is this line? And give me 2373
Reply
#4

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;
}
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)