[Pomoc] Zcmd u CL ?

Započeo BIRSAâ„¢, Januar 27, 2012, 17:27:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Dali bih ovu komandu mogao uklopiti nekako u CL GameMod ?
Dio skripte:

COMMAND:kuca(playerid,params[])
{
new string[128];
new x_job[128];
new idx;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
new gouse = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pPhousekey] == 255 && strcmp(playername, Houses[PlayerInfo[playerid][pPhousekey]][hOwner], false) == 0)
{
SendClientMessage( playerid, WHITE, "Ne posjedujes kucu!" );
return 1;
}

x_job = strtok(params, idx);
if(!strlen(x_job) && PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, Houses[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) {
   format( string, sizeof( string ), " %s | Cijena: %d (ID Kuce: %d) Vlasnik: %s", Houses[PlayerInfo[playerid][pPhousekey]][hOpis],Houses[PlayerInfo[playerid][pPhousekey]][HousePrice], PlayerInfo[playerid][pPhousekey], Houses[PlayerInfo[playerid][pPhousekey]][hOwner]);
SendClientMessage( playerid, 0x366936FF, string);
SendClientMessage(playerid, 0x5C865CFF,"{168BFF}POMOC:{838361} /kuca [ime]");
SendClientMessage(playerid, 0x6D936DFF,"Dostupno: prodaj, informacije, preuredi, izvadi, ostavi");
SendClientMessage(playerid, 0x7EA07EFF,"Dostupno: otvori, zatvori, kupisef, kucnovozilo, rent, rentabil");
return 1;
}
if(strcmp(x_job,"kucnovozilo",true) == 0)
{
new house = PlayerInfo[playerid][pPhousekey];
if (GetPlayerCash(playerid) < 75000)
{
SendClientMessage(playerid, 0xA0A0A0FF,"Nemas dovoljno novca (75000$)!");
return 1;
}
if (PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, Houses[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0 && GetPVarInt(playerid, "DonatorRank")  == 0)
{
ShowPlayerDialog(playerid, HCMENU, DIALOG_STYLE_LIST, "Odaberi vozilo!","Jester\nGreenwood \nSentinel \nWashington \nBuffalo \nElegant \nWindsor \nElegy \nHustler \nAdmiral \nFeltzer \nFlash", "Odaberi", "Ponisti");
SaveHouse(house);
}
}
if(strcmp(x_job,"prodaj",true) == 0)
{
new sendername[MAX_PLAYER_NAME], stringt[64];
if(PlayerInfo[playerid][pPhousekey] == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "Ne posjedujes kucu.");
return 1;
}
if(PlayerInfo[playerid][pMarried] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Udana/Vjencan si, ne mozes prodati kucu !");
        return 1;
    }

if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, Houses[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
new house = PlayerInfo[playerid][pPhousekey];
Houses[house][hOwned] = 0;
PlayerInfo[playerid][pHCar] = 0;
Houses[house][LockStatus] = 1;
Houses[house][hVec] = 418;
Houses[house][hVcol1] = 1;
Houses[house][hVcol2] = 1;
DestroyVehicle(HouseVehicle[playerid]);
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(Houses[house][hOwner], "Niko", 0, strlen("Niko"), 255);
ConsumingMoney[playerid] = 1;
Houses[house][hOwned] = 0;
GivePlayerCash(playerid,Houses[house][HousePrice]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
KCijena[playerid] = TextDrawCreate(186.000000, 202.000000, "Kupili ste kucu za: -$");
TextDrawBackgroundColor(KCijena[playerid], 255);
TextDrawFont(KCijena[playerid], 1);
TextDrawLetterSize(KCijena[playerid], 0.600000, 4.199999);
TextDrawColor(KCijena[playerid], -1);
TextDrawSetOutline(KCijena[playerid], 1);
TextDrawSetProportional(KCijena[playerid], 1);
format( stringt, sizeof( stringt ), "~y~Prodali ste kucu za: ~g~%d$", Houses[house][HousePrice]);
TextDrawSetString(KCijena[playerid], stringt);
TextDrawShowForPlayer(playerid, Cestitka);
TextDrawShowForPlayer(playerid, KCijena[playerid]);
SetTimerEx("UnistikucaTxT",5000, false, "i", playerid);
PlayerInfo[playerid][pPhousekey] = 255;
if(PlayerInfo[playerid][pLocal] == house)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,Houses[house][hExteriorX],Houses[house][hExteriorY],Houses[house][hExteriorZ]);
PlayerInfo[playerid][pInt] = 0;
}
SaveHouse(house);
OnPropTextdrawUpdate();
SacuvajIgraca(playerid);
return 1;

}

}


Neke slike/video za lakse dobivanje pomoci(neobavezno):

Mozes staviti ali ne mozes mijesati strcmp i zcmd  negop stavi zcmd izvan svega ..

Ali ja kad stavim tu komandu na kraj skripte, pokazuje mi warning kao newer used a tu komandu..i komanda nece da radi u skripti....:/ kako to da rijesim ????