Wierd mysql bug
#1

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);
Reply
#2

wpassword[129] = ........
Reply
#3

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

Quote:
Originally Posted by System64
Посмотреть сообщение
wpassword[129] = ........
That would give another error.
I think the function
pawn Код:
g_mysql_ReturnKey
which is not even defined, as far as I can see, causes the problem.
Reply
#5

How do i define it ?
Reply
#6

You might want to look at this thread.
Reply
#7

Urhm im a bit new to mysql And i dont get a thing of that
Reply
#8

It's all explained.
Just don't read the code only, read the explanation as well!
Reply
#9

Still blank
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)