01.06.2015, 18:20
PHP код:
else if(dialogid == 18)
{
if(response)
{
new string[128], query[200];
format(query,sizeof(query),"UPDATE doors SET pickup = %d WHERE ID = %d",string,EditingDoorid);
mysql_function_query(Connection,query,false,"","");
format(dInfo[EditingDoorid][dPickup], 4, inputtext);
DestroyPickup(dInfo[EditingDoorid][dOne]);
Delete3DTextLabel(dInfo[EditingDoorid][dTwo]);
dInfo[EditingDoorid][dOne] = CreatePickup(dInfo[EditingDoorid][dPickup], 1, dInfo[EditingDoorid][dPos][0], dInfo[EditingDoorid][dPos][1], dInfo[EditingDoorid][dPos][2], 0);
format(string, sizeof(string), "%s", pickup = '%e'[EditingDoorid][dText]);
dInfo[EditingDoorid][dTwo] = Create3DTextLabel(string, COLOR_WHITE, dInfo[EditingDoorid][dPos][0], dInfo[EditingDoorid][dPos][1], dInfo[EditingDoorid][dPos][2], 0, 0);
format(string, sizeof(string), "[Admin Log]: %s has changed the pickup of doorid %d.", PN(playerid), EditingDoorid);
SendAdminMessage(string);
Log("Logs/Admin.log", string);
}
else return 0;