[POMOC] Kuca

Započeo .ılllı. Wlseco .ılllı., Februar 28, 2013, 20:33:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: 0
Detaljan opis problema: Kad odem do kuce i ukucam /buyhouse izbaci SERVER: Unkown command. kak da rijesim
Dio skripte: Ev ti komanda /buyhouse 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(4.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), "   Moras biti Level %d da kupis ovu kucu !", HouseInfo[h][hLevel]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "   Vec imas kucu, ukucaj /sellhouse ako zelis kupiti ovu !");
return 1;
}
if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
{
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]);
Proracunsys[ProracunAmmount] += 2000;//pri kupnji kuce 2k ide u proracun, ovo je novo
PlayerPlayMusic(playerid);
SetPlayerInterior(playerid,HouseInfo[h][hInt]);
SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);
GameTextForPlayer(playerid, "~w~Dobrodosli kuci~n~Mozete izaci iz kuce kad god hocete stiskajuci blizu vrata 'F'", 5000, 3);
PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
PlayerInfo[playerid][pLocal] = h;
SendClientMessage(playerid, COLOR_WHITE, "Cestitamo na vasoj novoj kuci !");
SendClientMessage(playerid, COLOR_WHITE, "Ukucaj /help za pomoc !");
                        DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
SaveProracun();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "   Nemas dovoljno novca !");
return 1;
}
}
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): You don't need

MARIO WLSECO • KUCNI SERVER • SMECAR

bump

MARIO WLSECO • KUCNI SERVER • SMECAR

Jel imas u modu ZCMD komande?

Citat: joXy_# poslato Mart 06, 2013, 13:26:13 POSLE PODNE
Jel imas u modu ZCMD komande?
ne ni YCMD

MARIO WLSECO • KUCNI SERVER • SMECAR