Jump to content
  • 0

Binfo


Ph0eniX

Question

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;
}

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Incearca asa


	}
	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]);
			}

apropo asigurate ca in enum acel Nameb este cu [50] sau macar sa aiba asa Nameb[valuta] !

I'm back bitches.

Link to comment
Share on other sites

Mersi am rezolvat o erroare...da acuma imi da erroarea asta :|  doar

error 047: array sizes do not match, or destination array is too small

la aceeasi linie

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Mersi am rezolvat o erroare...da acuma imi da erroarea asta :|  doar

error 047: array sizes do not match, or destination array is too small

la aceeasi linie

Inloc de : Binfo[bASEnumber][Nameb] = pname;  pune Binfo[bASEnumber][Nameb]; , nustiu sigur dar ia vezi daca iti merge.

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

warning 215: expression has no effect

Warningu asta mi la dat...si sa compilat :| acuma ... intru pe sv sa vad daca nu imi afecteaza si alte comenzi :) revin cu edit

EDIT: mda...numi functioneaza NICIO comanda pe server si in consola imi apare...

http://postimg.org/image/ocp7zgl33/

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.