[Pomoc] Bug


Započeo LoOdaK, Februar 18, 2014, 15:21:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:SS:RP
Detaljan opis problema:Pa imam bug kada dodjem do kuce i ukucam /buyhouse pise "Server:Uncnown command
Dio skripte:evo vam komanda
if(strcmp(cmd, "/buyhouse", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new Float:oldposx, Float:oldposy, Float:oldposz;
			GetPlayerName(playerid, playername, sizeof(playername));
			GetPlayerPos(playerid, oldposx, oldposy, oldposz);
			for(new h = 0; h < sizeof(HouseInfo); h++)
			{
				if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
				{
					if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
					{
						format(string, sizeof(string), "   Morate biti Level %d da biste kupili ovo !", HouseInfo[h][hLevel]);
						SCM(playerid, COLOR_GRAD5, string);
						return 1;
					}
					if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
					{
						SCM(playerid, COLOR_WHITE, "   Vec posjedujete kucu, kucajte /sellhouse ako zelite da kupite ovu !");
						return 1;
					}
					if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
					{
					    Delete3DTextLabel(Text3D:housesale);
						PlayerInfo[playerid][pPhousekey] = h;
						HouseInfo[h][hOwned] = 1;
						GetPlayerName(playerid, sendername, sizeof(sendername));
						strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
						GivePlayerMoney(playerid,-HouseInfo[h][hValue]);
						/*SetPlayerInterior(playerid,HouseInfo[h][hInt]);
						SetPlayerVirtualWorld(playerid,HouseInfo[h][hWorld]);
						SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);*/
						GameTextForPlayer(playerid, "~w~Dobrodosli Kuci~n~Mozete uvek izaci tako sto cete doci do ulaznih vrata i kucati /exit", 5000, 3);
						PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
						PlayerInfo[playerid][pLocal] = h;
						SCM(playerid, COLOR_WHITE, "Cestitamo vam na kupovini nove kuce !");
						SCM(playerid, COLOR_WHITE, "Kucajte /help da biste dobili pomoc vezanu za kucu !");
						Delete3DTextLabel(Text3D:housesale);
                        DateProp(playerid);
						OnPropUpdate();
						OnPlayerUpdateCustom(playerid);
						return 1;
					}
					else
					{
						SCM(playerid, COLOR_WHITE, "   Nemate dovoljno novca za kupovinu !");
						return 1;
					}
				}
			}
		}
		return 1;
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno):////
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Blaeks

*

Madmen

problem je sigurno do house sistema, ne do komande

Mozes mi nesto reci Blaeks?
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Blaeks

*

Madmen


Ako ja sad sve u script files obrisem kuce i ubacim sistem za pravljenje kuca oce to raditi sada?
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Blaeks

*

Madmen

pa to je potpuna rekonstrukcija house sistema, ako sve uradis dobro onda ce raditi

Dobro imas li ti neki mozda house system ili da trazim po forumu
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Blaeks

*

Madmen


Nemoj ništa brisat niti,radit ponovo samo ces nesto smrdat.

Umjesto:

if(strcmp(cmd, "/buyhouse", true) == 0)


probaj staviti:

if(strcmp(cmdtext, "/buyhouse", true) == 0)
Poslednja Izmena: Februar 19, 2014, 08:01:47 PRE PODNE od קlเשค

[NUDIM ]
Gang-Rush server TDM besplatno