07.11.2014, 16:53
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { for(new haI = 1; haI < MAX_HOUSES; haI++) { new Str[24], hID; mysql_query("SELECT * FROM `houses`"); mysql_store_result(); if(mysql_num_rows() > 0) { while(mysql_fetch_row(Str)) { sscanf(Str, "p<|>is[128]", hID); if(pickupid == HousePickup[hID]) { GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to go inside: ", 5000, 5); } iHos[haI][haID] = haI; } } mysql_free_result(); } return 1; }