Wierd mysql bug - 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: Wierd mysql bug (
/showthread.php?tid=280139)
Wierd mysql bug -
draken7444 - 30.08.2011
C:\Users\Danish Champion\Desktop\Public Roleplay by George Nakash\NGRP WORKING\gamemodes\NGRP(mysql).pwn(25457) : error 017: undefined symbol "g_mysql_ReturnKey"
C:\Users\Danish Champion\Desktop\Public Roleplay by George Nakash\NGRP WORKING\gamemodes\NGRP(mysql).pwn(25457) : error 033: array must be indexed (variable "wpassword")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
public OnPlayerLogin(playerid,password[])
{
new passbuffer[129], wpassword[129];
wpassword = g_mysql_ReturnKey(GetPlayerNameExt(playerid));
WP_Hash(passbuffer, sizeof(passbuffer), password);
Re: Wierd mysql bug -
System64 - 30.08.2011
wpassword[129] = ........
Re: Wierd mysql bug -
draken7444 - 30.08.2011
i simply get this C:\Users\Danish Champion\Desktop\Public Roleplay by George Nakash\NGRP WORKING\gamemodes\NGRP(mysql).pwn(25457) : error 032: array index out of bounds (variable "wpassword")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Wierd mysql bug -
[MWR]Blood - 30.08.2011
Quote:
Originally Posted by System64
wpassword[129] = ........
|
That would give another error.
I think the function
which is not even defined, as far as I can see, causes the problem.
Re: Wierd mysql bug -
draken7444 - 30.08.2011
How do i define it ?
Re: Wierd mysql bug -
[MWR]Blood - 30.08.2011
You might want to look at
this thread.
Re: Wierd mysql bug -
draken7444 - 30.08.2011
Urhm im a bit new to mysql And i dont get a thing of that
Re: Wierd mysql bug -
[MWR]Blood - 30.08.2011
It's all explained.
Just don't read the code only, read the explanation as well!
Re: Wierd mysql bug -
draken7444 - 31.08.2011
Still blank