Mysql SELECT
#1

Hi, my problem is mysql
PHP код:
MySQLCheck();
new 
resultline[1024],fetch[258];
format(query,1024,"SELECT * FROM `players` WHERE Job = '1' LIMIT 10");
mysql_query(query);
mysql_store_result();
//new vardas;
mysql_fetch_row(resultline);
mysql_fetch_field_row(fetch,"PName");
sscanf(fetch"s[128]"gangDB[gangid][leader]);
printf("%s",gangDB[gangid][leader]);
mysql_free_result(); 
And server_log.txt
PHP код:
[12:52:10Name_Nickname
[12:52:10Name_Nickname
[12:52:10Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:11Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname
[12:52:12Name_Nickname 
Reply
#2

where u add the script in what public or callback?
Reply
#3

OnGameModeInit()
Reply
#4

You need to show us your full code. What does that mean in the server_log? Are you printing that somewhere else? If so where?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)