format
#1

PHP код:
format(connectionHandlesizeof(connectionHandle), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params)); 
Код:
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3320) : error 035: argument type mismatch (argument 1)
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3320) : error 035: argument type mismatch (argument 1)
Reply
#2

Try mysql_format?
Reply
#3

gives same error

PHP код:
mysql_format(connectionHandlesizeof(connectionHandle), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params)); 
Reply
#4

PHP код:
new query[100];
mysql_format(connectionHandlequerysizeof(query), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params));  
mysql_query(connectionHandlequery); 
Reply
#5

Show us escstring, connectionHandle.
Reply
#6

Quote:
Originally Posted by iLearner
Посмотреть сообщение
PHP код:
new query[100];
mysql_format(connectionHandlequerysizeof(query), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params));  
mysql_query(connectionHandlequery); 
Код:
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3321) : warning 213: tag mismatch
PHP код:
mysql_format(connectionHandle,querysizeof(connectionHandle), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params)); 
Reply
#7

1: show us where did you define connectionhandle
2: Show us what (where) did you assign to connectionhandle.
3: sizeof(query), not sizeof(connectionhandle)
Reply
#8

PHP код:
mysql_format(connectionHandle,querysizeof(query), "SELECT `name` FROM `banlog` WHERE name = '%s' AND banned = 1 LIMIT 1"escstring(params)); 
also check if definition of connhandle it's

PHP код:
new MySQL:connectionHandle
Reply
#9

gives me same warnings
Reply
#10

PHP код:
mysql_format(connectionHandle,querysizeof(query), "SELECT `name` FROM `banlog` WHERE `name` = '%s' AND `banned` = '%d' LIMIT 1"escstring(params),1); 
And tell us the mysql version you use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)