error 035: argument type mismatch (argument 3
#1

PHP код:
new Query[128];
    
strcat(Query,"UPDATE `users` SET `Mesaj4` = '0' WHERE `Username` = '%s'"name);
    
mysql_tquery(handleQuery""""); 
error 035: argument type mismatch (argument 3

why
Reply
#2

Use mysql_format, strcat doesn't format strings anyways
Reply
#3

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
Use mysql_format, strcat doesn't format strings anyways
I will try, thanks.

Is this good?

PHP код:
pInfo[targetid][TM4] = "%02d/%02d/%d - %02d:%02d:%02d",DayMonthYearHourMinuteSecond
Reply
#4

PHP код:
new String[512]; // Be sure the size is enough for your query
mysql_format(DatabaseStringsizeof String"INSERT INTO `databasename` ..."playeridnamesetc);
mysql_tquery(DatabaseString"YourCallBack""i"playerid); 
And

Quote:
Originally Posted by Zeus666
Посмотреть сообщение
I will try, thanks.

Is this good?

PHP код:
pInfo[targetid][TM4] = "%02d/%02d/%d - %02d:%02d:%02d",DayMonthYearHourMinuteSecond
Won't work, you need to format a string for that
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)