MySQL increase
#7

PHP код:
CMD:createdrugs(playerid

    if(
PlayerInfo[playerid][Admin] < 5
    { 
        
ERROR(playerid"You are not allowed to use that command"); 
        return 
1
    }
    new 
Float:XFloat:YFloat:Zquery[128]; 
    
GetPlayerPos(playeridXYZ); 
    new 
id Iter_Free(i_Drugs);
    
DrugsPickup[id] = CreateDynamicPickup(12791XYZ); 
    
DrugsLabel[id] = CreateDynamic3DTextLabel(""SERVERBLUE"[ DRUGS ]\n"WHITE"To buy drugs type /buydrugs"0x1D9F00AAXYZ,  10.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1, -120.0); 
    
DrugsInfo[id][dPosX] = X
    
DrugsInfo[id][dPosY] = Y
    
DrugsInfo[id][dPosZ] = Z;
    
mysql_format(g_SQLquerysizeof(query), "INSERT INTO `drugs` (`X`, `Y`, `Z`) VALUES (%f, %f, %f)"XYZ); 
    
mysql_tquery(g_SQLquery"CreatePickupA""i"id);
    return 
1
}  
forward CreatePickupA(id);
public 
CreatePickupA(id)
{
    
DrugsInfo[id][ID] = cache_insert_id();
    
Iter_Add(i_Drugsid);
    return 
1;

Reply


Messages In This Thread
MySQL increase - by Micko123 - 12.11.2016, 17:02
Re: MySQL increase - by Konstantinos - 12.11.2016, 17:03
Re: MySQL increase - by Micko123 - 12.11.2016, 17:17
Re: MySQL increase - by Micko123 - 12.11.2016, 17:25
Re: MySQL increase - by oMa37 - 12.11.2016, 17:40
Re: MySQL increase - by Micko123 - 12.11.2016, 17:42
Re: MySQL increase - by oMa37 - 12.11.2016, 17:45
Re: MySQL increase - by Micko123 - 12.11.2016, 17:51

Forum Jump:


Users browsing this thread: 3 Guest(s)