Simple MySQL reading crashes the Server
#1

Hello,
I made a simple reading from a MySQL Database, but if I output this, the server crashes:
pawn Code:
new chkqry[255]
format(chkqry,sizeof(chkqry),"SELECT * FROM user WHERE name='%s'", plname);
samp_mysql_query(chkqry);
samp_mysql_store_result();
new money[255];
new line[1024];
samp_mysql_fetch_row(line);
new SpDv[30][50];
split(line, SpDv, '|');
new ausg[255];
format(ausg,sizeof(ausg),"Wert: %s",SpDv[5]);
Does someone know if I made something wrong or is it something other?
Reply
#2

Code:
print(ausg);
Outputs to console.
Reply
#3

yes I know. I want it in the console! I only forgot to copy this line!
And this is the output:
Quote:

Wert: 500

Reply
#4

ok unter Linux (I started it on my root-server) theres no problem.
It only crashes on windows!
Reply
#5

Did you forget to change 'localhost' ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)