19.09.2009, 21:22
Hello,
I made a simple reading from a MySQL Database, but if I output this, the server crashes:
Does someone know if I made something wrong or is it something other?
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]);