10.03.2013, 15:43
Hi,
I'm italian. Excuse me for my bad english.
I have a problem with my GameMode RolePlay, this problem is caused by a stock of LoadHouse. This is the code:
The Pawn have not error and warning, i start the samp-server and show this:
Thanks for all reply.
I'm italian. Excuse me for my bad english.
I have a problem with my GameMode RolePlay, this problem is caused by a stock of LoadHouse. This is the code:
Код:
stock LoadHouse() { new Nome[MAX_PLAYER_NAME]; new Desc[64]; for(new i = 0; i<MAX_HOUSE; i++) { for(new a = 0; a<MAX_PLAYERS; a++) { format(file, sizeof(file), H_FILE_PATH, i); if(INI_Exist(file)) { INI_Open(file); hInfo[i][X] = INI_ReadFloat("FloatX"); hInfo[i][Y] = INI_ReadFloat("FloatY"); hInfo[i][Z] = INI_ReadFloat("FloatZ"); hInfo[i][Xu] = INI_ReadFloat("FloatXUscita"); hInfo[i][Yu] = INI_ReadFloat("FloatYUscita"); hInfo[i][Zu] = INI_ReadFloat("FloatZUscita"); INI_ReadString(Desc, "Descrizione", 128); hInfo[i][hText] = Desc; hInfo[i][hCosto] = INI_ReadInt("CostoCasa"); hInfo[i][Interior] = INI_ReadInt("Interior"); hInfo[i][VirtualW] = INI_ReadInt("VirtualW"); hInfo[i][Comprata] = INI_ReadInt("Comprata"); hInfo[i][Cassaforte] = INI_ReadInt("Cassaforte"); hInfo[i][Chiusa] = INI_ReadInt("Chiusa"); INI_ReadString(Nome, "Proprietario", 128); hInfo[i][Proprietario] = Nome; INI_Close(); if(hInfo[i][Comprata] == 0) { //CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); PickupID[i] = CreateDynamicPickup(1273, 24, hInfo[i][X], hInfo[i][Y], hInfo[i][Z], -1, GetPlayerInterior(i), -1, 15.0); MapIconID[i] = CreateDynamicMapIcon(hInfo[i][X], hInfo[i][Y], hInfo[i][Z], 31, 0, 0, 0, a, 10.0); new stringatext[128]; format(stringatext, sizeof(stringatext), "[ID: %d] Casa in Vendita. Costo: $%d.", i, hInfo[i][hCosto]); hInfo[i][DText] = CreateDynamic3DTextLabel(stringatext, BIANCO, hInfo[GetH(i)][X], hInfo[GetH(i)][Y], hInfo[GetH(i)][Z], 8.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 20.0); } else if(hInfo[i][Comprata] == 1) { //CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); PickupID[i] = CreateDynamicPickup(1272, 24, hInfo[i][X], hInfo[i][Y], hInfo[i][Z], -1, GetPlayerInterior(i), -1, 15.0); MapIconID[i] = CreateDynamicMapIcon(hInfo[i][X], hInfo[i][Y], hInfo[i][Z], 32, 0, 0, 0, a, 10.0); new stringatext[128]; format(stringatext, sizeof(stringatext), "[ID: %d] Casa non in Vendita. Proprietario: %s.", i, hInfo[i][Proprietario]); hInfo[i][DText] = CreateDynamic3DTextLabel(stringatext, BIANCO, hInfo[GetH(i)][X], hInfo[GetH(i)][Y], hInfo[GetH(i)][Z], 8.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 20.0); } } } } }
Thanks for all reply.