SA-MP Forums Archive
need help FAST - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help FAST (/showthread.php?tid=84966)



need help FAST - Ignas1337 - 04.07.2009

http://pastebin.ca/1483848
here's my script. server crashes onplayerlogin and onplayer register the query fails. why?


Re: need help soon - Ignas1337 - 04.07.2009

Help me pls


Re: need help soon - Correlli - 04.07.2009

Add debug messages to see where the problem appears.


Re: need help soon - Ignas1337 - 04.07.2009

ok, but what about the register? it doesn't crash, but the query fails...


Re: need help soon - Ignas1337 - 04.07.2009

sorry for dp, but I hate editing.
pawn Код:
mysql_fetch_row(resultline);
        print("debug");

        mysql_fetch_field_row(field, "SQLID");  PlayerInfo[playerid][pSQLID] = strval(field); // this line crashes server
        print("debug");
it prints the first "debug" but then it doesn't. what's wrong with the line?


Re: need help FAST - Ignas1337 - 04.07.2009

I really hate tripple posting but I know no-one looks in page 2 because I don't either (most of the time) ...


Re: need help FAST - Andom - 04.07.2009

Can you show us how ''field'' is defined?


EDIT:

Try this and show us where it stopped;
Quote:

mysql_fetch_row(resultline);
print("debug [1]");

mysql_fetch_field_row(field, "SQLID");
print("debug [2]");

PlayerInfo[playerid][pSQLID] = strval(field); // this line crashes server
print("debug [3]");




Re: need help FAST - Ignas1337 - 04.07.2009

thanks for reply
I tried that the fetch_field_row crashes it. um.. there's a link in the main topic to the whole script
http://pastebin.ca/1483848