SA-MP Forums Archive
query - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: query (/showthread.php?tid=648913)



query - Loinal - 30.01.2018

PHP код:
IRCCMD:query(botidchannel[], user[], host[], params[]) 

new 
bString[1000], field[1000];
if(!
IRC_IsOwner(botidchanneluser)) return IRC_Say(groupIDchannel"7Error: 1Invalid Level, this command can be used just by owners"); 
if(
sscanf(params"s[1000]"field)) return IRC_Say(groupIDchannel"4Usage: !query [mysql_query]");
mysql_query(mysqlfield);
return 
1

if i want to update the database from irc i type "!query UPDATE `players` bla bla"

it doesn't update, why?