[pomoc]gasi se srw

Započeo Aldin Begovic, Februar 14, 2012, 20:24:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

mod:gf
opis problema:Kada ukucam komandu /kupimotor server se ugasi odma :S a motor se ne kupi ! Zna li neko u cemu je problem ??
cod:   


if(strcmp(cmd, "/kupimotor", true) == 0)//
{
      if (bSpectating[playerid][0]!=-1)
    {
        if (Bikelist[playerid][bTyp]==-1)
        {
            new price = BikeBuylist[bSpectating[playerid][0]][Price];
            if (price <= GetPlayerMoney(playerid))
            {
                new autohaus=BikeBuylist[bSpectating[playerid][0]][Autohaus];
            GivePlayerCash(playerid, - price);
            Bikelist[playerid][bTyp]=bSpectating[playerid][0]; Bikelist[playerid][mX]=Bikespawns[autohaus][mX]; Bikelist[playerid][mY]=Bikespawns[autohaus][mY];
Bikelist[playerid][mZ]=Bikespawns[autohaus][mZ]; Bikelist[playerid][mRotation]=Bikespawns[autohaus][mRotation]; Bikelist[playerid][Status]=1; Bikelist[playerid][Lock]=0;
Bikelist[playerid][Carid]=CreateVehicle(BikeBuylist[bSpectating[playerid][0]][Modelid],Bikelist[playerid][mX],Bikelist[playerid][mY],Bikelist[playerid][mZ],Bikelist[playerid][mRotation],-1,-1,-1);
        SetBikeParamsForAll(BikeBuylist[bSpectating[playerid][0]][Carid],0,0);
        TogglePlayerControllable(playerid,1);
        bSpectating[playerid][0]=0;
        RemovePlayerFromVehicle(playerid);
        MotoSave(playerid);
format(string,128,"* Cestitamo, kupili ste motor marke {FFFFFF}%s "COL_YELLOW"za {FFFFFF}$%i!",BikeBuylist[Bikelist[playerid][bTyp]][bName],price);
SendClientMessage(playerid, YELLOW, string);
SendClientMessage(playerid, SVETLOPLAVA, "Ako ti je motor unisten {FFFFFF}/mo fix "COL_SVPLAVA"za popravak.");
SendClientMessage(playerid, SVETLOPLAVA, "Motor mozees zakljucat i otkljucat sa komandom {FFFFFF}/mo lock.");
SendClientMessage(playerid, SVETLOPLAVA, "Ostalo: {FFFFFF}(/mo)to.");
SendClientMessage(playerid, COLOR_YELLOW, "Motor sada pripada vama! Zabavite se!");
}
                else { format(string, 128, "Nemas dovoljno novaca! (Potrebno: $%i)!", price); SendClientMessage(playerid, COLOR_LIGHTRED, string); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Vec posjedujes motor!"); }
    }
    else { SendClientMessage(playerid, COLOR_GREY, "Nisi u izlozbenom motoru!"); }
    return 1;
}

Aj postaj po pravilima pa cemo popricati.

Momak !! Gdje sam to pogrijesio ??? AE ti prestani se tripovat da si Moderator il sta vec , ja sam po pravilima postao!PS Moze lock ovdje rijesio sam !!

Citat: Aldin Begovic poslato Februar 14, 2012, 22:26:12 POSLE PODNE
Momak !! Gdje sam to pogrijesio ??? AE ti prestani se tripovat da si Moderator il sta vec , ja sam po pravilima postao!PS Moze lock ovdje rijesio sam !!

Pogriješio si ovdje:
[b]Skripta koju koristim[/b]:
[b]Detaljan opis problema[/b]:
[b]Dio skripte[/b]:
[b]Neke slike/video za lakse dobivanje pomoci(neobavezno)[/b]: