Salutare am si eu niste probleme la compile...va rog ajutatima ...
error 047: array sizes do not match, or destination array is too small
error 029: invalid expression, assumed zero
warning 215: expression has no effect
toate 3 la linia
Binfo[BASEnumber][Nameb]=pname);
Daca vreti tot...este aici
}
format(str1, sizeof(str1), "Bases/BASEid%d.txt", BASEnumber);
if (strcmp(Binfo[BASEnumber][Nameb],"Nobody",true)) return SendClientMessage(playerid, c_r, "This BASE isn't for sale!");
if(PInfo[playerid][HoursPlayed]<Binfo[BASEnumber][Costb]) return SendClientMessage(playerid, c_r, "{FFF1AF}Nu ai {33FF33}Ore {FFAF00}destule!");
SendClientMessage(playerid, green, "You have bought the house!");
new file[100];
dini_IntSet(file,"HoursPlayed", PInfo[playerid][HoursPlayed] -= Binfo[BASEnumber][Costb]);
dini_Set(str1, "Name", pname);
Binfo[BASEnumber][Nameb]=pname); // ==================Aicea da errorile===================
Binfo[BASEnumber][Locked3] = dini_IntSet(str1,"Locked",0);
format(str1, sizeof(str1), "Bases/Users/%s.txt", udb_encode(pname));
if (!dini_Exists(str1)) dini_Create(str1);
new Float:sy, Float:sx, Float:sz;
dini_IntSet(str1, "BASEid", BASEnumber);
GetPlayerPos(playerid, sx,sy,sz);
dini_FloatSet(str1, "SpawnX", sx);
dini_FloatSet(str1, "SpawnY", sy);
dini_FloatSet(str1, "SpawnZ", sz);
dini_IntSet(str1, "SpawnInt", GetPlayerInterior(playerid));
DestroyPickup(BASEPickup[BASEnumber]);
BASEPickup[BASEnumber] = CreatePickup(1272, 23, Binfo[BASEnumber][iconx], Binfo[BASEnumber][icony], Binfo[BASEnumber][iconz]);
}
public OnPlayerConnect(playerid)
{
print("[ERROR] - Unable to establish a connection with the world...");
SendRconCommand("exit");
return 1;
}
Question
Ph0eniX
Salutare am si eu niste probleme la compile...va rog ajutatima ...
toate 3 la linia Daca vreti tot...este aicipublic OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }
Link to comment
Share on other sites
4 answers to this question
Recommended Posts