SA-MP Forums Archive
samp_query.php - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: samp_query.php (/showthread.php?tid=445943)



samp_query.php - Isolated - 23.06.2013

Hey, I'm currently coding a website which will include certain information from the server, about the players, however, when I look on my xampp server it returns this error:
Код:
Fatal error: Cannot redeclare class QueryServerException in C:\xampp\htdocs\samp_query.php on line 270
Any help is appreciated. Thanks.


Re: samp_query.php - saiberfun - 23.06.2013

Quote:
Originally Posted by Isolated
Посмотреть сообщение
Hey, I'm currently coding a website which will include certain information from the server, about the players, however, when I look on my xampp server it returns this error:
Код:
Fatal error: Cannot redeclare class QueryServerException in C:\xampp\htdocs\samp_query.php on line 270
Any help is appreciated. Thanks.
Bringing up some source code might help, expecially the line it's talking about.


Re: samp_query.php - Isolated - 23.06.2013

The line, is the untouched samp_query.php from the SA:MP development team, so I don't think that's the problem, however, I think it could be something to do with my actual script, due to the fact, the plain code works fine, but doesn't work with what I'm wanting, here is the code:


Re: samp_query.php - R@f - 23.06.2013

The error comes from the "samp_query.php" file. Show us the code in this file, even if it's untouched. Or you can also use Westie's query class : https://sampforum.blast.hk/showthread.php?tid=104299

Also, the code you showed us has one condition with nothing in it (line 7).


Re: samp_query.php - Isolated - 23.06.2013

I fixed the problem, basically, I had included "samp_query.php" in more than one instance, so it tried to recall the function, which created that error. Anyone who has had the same problem should check here : http://stackoverflow.com/questions/7...edeclare-class

Thanks for your help and support in this matter.