Server crash when i connect - 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: Server crash when i connect (
/showthread.php?tid=122167)
Server crash when i connect -
whitedragon - 20.01.2010
i put my server to mysql.
put when i connect the server crash.
Crashinfo:
Код:
--------------------------
Exception At Address: 0x77C47D45
Registers:
EAX: 0x008E1E90 EBX: 0x04DA2701 ECX: 0x00000000 EDX: 0x00000000
ESI: 0x008E429A EDI: 0x00000007 EBP: 0x0012F640 ESP: 0x0012F608
EFLAGS: 0x00010246
Stack:
+0000: 0x00D7A028 0x00D7A028 0x04DA2764 0x00000000
+0010: 0x008E1E90 0x00000001 0x00000000 0x00000000
+0020: 0x10000000 0x00000000 0x00000000 0x00000000
+0030: 0x00000000 0x00006411 0x0012F670 0x609C1770
+0040: 0x00000000 0x008E4298 0x0012F670 0x00000000
+0050: 0x609C8040 0x008E7248 0x00000000 0x00000001
+0060: 0x008E4298 0x008E7498 0x04E0BDBC 0x00401096
+0070: 0x00D7A028 0x0591E0C8 0x04F35984 0x00402BB3
+0080: 0x00D7A028 0x00000084 0x0012F6A8 0x0591E0C8
+0090: 0x00000000 0x00D7A028 0x00000000 0x01000001
+00A0: 0x00000000 0x009E8640 0x009E8744 0x009EAD44
+00B0: 0x009E6D7C 0x009E9EE4 0x009E6D7C 0x04DA2764
+00C0: 0x04F35984 0x00000000 0x04DA0020 0x00193220
+00D0: 0x0046054B 0x00D7A028 0x0012F710 0x00000096
+00E0: 0x00D7A028 0x00000000 0x00D7A028 0x0012F720
+00F0: 0x0012F714 0x00E8C9A8 0x0591C6CC 0x00000000
+0100: 0x00000000 0x00E8C9A8 0x00000000 0x0591C6CC
+0110: 0x0047C958 0x00000096 0x009E6D48 0x0012F85C
+0120: 0x00A3ACB8 0x0012FC88 0x0000000C 0x00000088
+0130: 0x00000088 0x00000080 0x0012F85C 0x00000000
How do i fix it? (it's work without mysql)
Re: Server crash when i connect -
Miguel - 20.01.2010
Show us your
public OnPlayerConnect(playerid).
Re: Server crash when i connect -
whitedragon - 22.01.2010
I solved it.
but i have warning in gm for mysql
C:\samp\NGM.PWN(2015) : warning 219: local variable "query" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 10104 bytes
Code size: 1652980 bytes
Data size: 10382016 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4210 cells (16840 bytes)
Total requirements:12061484 bytes
1 Warning.
source ogf warning is:
pawn Код:
public MySQLUpdatePlayerFlo(query[], sqlplayerid, sqlvalname[], Float:sqlupdateflo)
{
new query[128];
format(query, sizeof(query), "UPDATE players SET %s=%f WHERE id=%d", sqlvalname, sqlupdateflo, sqlplayerid);
samp_mysql_query(query);
new flotostr[32];
format(flotostr, sizeof(flotostr), "%f", sqlupdateflo);
MySQLUpdatePlayerStr(query, sqlplayerid, sqlvalname, flotostr);
return 1;
}