mysql_query argument type mismatch
#4

PHP код:
//Assume You're using 39
new mysql;
CMD:setvip(playeridparams[])
{
    new 
targetidquery[126], pName[MAX_PLAYER_NAME];
    if(
targetid == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_ERROR"Invalid Player!");// A player could either be Connect/Disconnected.
    
if(sscanf(params"ud",targetid)) return SendClientMessage(playeridCOLOR_ERROR"{6EF83C}Kullanım:{FFFFFF} /setvip [playerid]");
    
GetPlayerName(targetidpNamesizeof(pName));
    
mysql_format(mysqlquerysizeof(query), "UPDATE uyeler SET vip = %d, WHERE k_adi = '%s'"1pName);// '' is more for %e and %s not %d. 
    
mysql_tquery(mysqlquery"""");
    return 
1;
}] 
Reply


Messages In This Thread
mysql_query argument type mismatch - by Jackieboyhd - 03.08.2017, 02:32
Re: mysql_query argument type mismatch - by Dayrion - 03.08.2017, 02:52
Re: mysql_query argument type mismatch - by Jackieboyhd - 03.08.2017, 13:04
Re: mysql_query argument type mismatch - by ISmokezU - 03.08.2017, 13:37
Re: mysql_query argument type mismatch - by Dayrion - 03.08.2017, 15:06
Re: mysql_query argument type mismatch - by Jackieboyhd - 03.08.2017, 16:28
Re: mysql_query argument type mismatch - by grymtn - 03.08.2017, 17:36
Re: mysql_query argument type mismatch - by ISmokezU - 03.08.2017, 18:08
Re: mysql_query argument type mismatch - by Jackieboyhd - 03.08.2017, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)