Question

Спойлер

new qwery[256];
 	format(qwery,256,"INSERT INTO `log_inout` (`user_id`,`date`,`ip`,`type`,`os`) VALUES ('%d','%d','%s','Зашел','Игра')",PLAYER_DATA[playerid]	  [data_USER_ID],PLAYER_DATA[playerid][data_LOGIN_IP],PLAYER_DATA[playerid],PLAYER_DATA[playerid]);
	mysql_query(qwery);

 

Спойлер

C:\Users\Александр\Desktop\VirtualTech RP\gamemodes\new.pwn(2377) : error 035: argument type mismatch (argument 1)

 

Спойлер

	mysql_query(qwery);

 

Благодарю за ранее

Share this post


Link to post

3 answers to this question

  • 0
1 час назад, Remmi_Feed сказал:

PLAYER_DATA[playerid],PLAYER_DATA[playerid]

потому что составлен неправильно. В цитате выделил что неправильно

Share this post


Link to post
  • 0

@Remmi_Feed попробуй вместо format использовать mysql_format.

Т.е. получится:

mysql_fomat(dbHandlde, qwery, 256, ...);

Share this post


Link to post
  • 0

@stibs я заменил на 

new string[1024],hour,minute,second,timestr[64];
	gettime(hour,minute,second);
	format(timestr,sizeof(timestr),"%02d:%02d:%02d",hour,minute,second);
	new qwery[256];
 	format(qwery,256,"INSERT INTO `log_inout` (`user_id`,`date`,`ip`,`type`,`os`) VALUES ('%d','%d','%s','Зашел','Игра')",PLAYER_DATA[playerid][data_USER_ID],timestr,PLAYER_DATA[playerid][data_LOGIN_IP],PLAYER_DATA[playerid],PLAYER_DATA[playerid]);
	mysql_function_query(dbHandle, string, true, "", "");

но теперь в логах пишет пустой запрос

Edited by Remmi_Feed

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Kutuzov
      By Kutuzov
      Всем привет, хотелось бы спросить у тех, кто разбирается в PluginSDK.
      Какие есть источники, руководства, документации о PluginSDK?
      Я пока что ничего нормального не нахожу.
      Заранее спасибо