Проблема с MySQL R34
#5

PHP код:
if(!strcmp(cmd"/deleteaccount")||!strcmp(cmd"/delacc"))
{
    if(
DostupForAdministration[playerid] == false || PlayerInfo[playerid][pAdmin] != 7) return SCM(playerid, -1"Неизвестная команда. Воспользуйтесь: /menu > Команды сервера");
     if(
sscanf(params,"s[24]",params[0])) return SCM(playeridCOLOR_WHITE"Введите: /deleteaccount [ник]");
      
sscanf(params[0],"u",giveplayerid);
       if(
IsPlayerConnected(giveplayerid)) return SCM(playeridCOLOR_GREY,"Игрок в сети!");
       if(!
strcmp(params[0], "Billy_King"true)) return true;
    
format(string3[playerid], 50+MAX_PLAYER_NAME"SELECT * FROM "TABLE_ACCOUNT" WHERE `Name` = '%s'"params[0]);
    
mysql_query(mysqlstring3[playerid]);
    new 
r,f;
    
cache_get_data(r,f);
    if(!
r) return SCM(playerid, -1,"Данного аккаунта нет в базе данных!");
    
format(string3[playerid], 50+MAX_PLAYER_NAME"DELETE FROM "TABLE_ACCOUNT" WHERE `Name` = '%s'",params[0]);
    
mysql_function_query(mysql,string3[playerid],false,"","");
    
format(string3[playerid], 50+MAX_PLAYER_NAME"DELETE FROM "TABLE_CARS" WHERE `Owner` = '%s'",params[0]);
    
mysql_function_query(mysql,string3[playerid],false,"","");
    
format(string3[playerid], 35+MAX_PLAYER_NAME"Администратор %s удалил аккаунт %s",PlayerInfo[playerid][pName],params[0]);
    
SCMA(COLOR_LIGHTRED,string3[playerid]);
    
format(string3[playerid], 60"[Дата: %02d/%02d/%d] [Время: %02d:%02d:%02d]"daytmontht,yeart,newhour,newminute,newsecond);
    
SCMA(COLOR_LIGHTRED,string3[playerid]);
    
format(string3[playerid], 50+MAX_PLAYER_NAME"SELECT * FROM "TABLE_HOUSE" WHERE `Owner` = '%s'",params[0]);
    
mysql_function_query(mysql,string3[playerid],true,"OnCallBack16","s",params[0]);
    
format(string3[playerid], 50+MAX_PLAYER_NAME"SELECT * FROM "TABLE_BIZZ" WHERE `Owner` = '%s'",params[0]);
    
mysql_function_query(mysql,string3[playerid],true,"OnCallBack17","s",params[0]);
    return 
true;

Reply


Messages In This Thread
Проблема с MySQL R34 - by vitalik6243 - 02.02.2014, 07:07
Re: Проблема с MySQL R34 - by Urukhay - 02.02.2014, 07:16
Re: Проблема с MySQL R34 - by k3dr - 02.02.2014, 07:42
Re: Проблема с MySQL R34 - by Stepashka - 02.02.2014, 07:50
Re: Проблема с MySQL R34 - by Den_Bellik - 02.02.2014, 09:16
Re: Проблема с MySQL R34 - by Splav - 02.02.2014, 09:55

Forum Jump:


Users browsing this thread: 3 Guest(s)