[Pomoc]/v lock

Započeo Keso, Februar 04, 2011, 21:06:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Opet ja...imma neki bug.Kada kucam /v lock1,server padne...Kod:
else if(strcmp(x_nr,"lock1",true) == 0)
        {
                new keycar = PlayerInfo[playerid][pPcarkey];
                if(keycar != 999)
                {
                    new locked[128];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
foreach (Player, i)
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 0;
OnPropUpdate();
return 1;
}
else if(CarInfo[keycar][cLock] == 0)
{
foreach (Player, i)
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
format(string, sizeof(string), "~w~Vozilo~n~~r~Zakljucano");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 1;
OnPropUpdate();
return 1;
}
                }

Neznam, ne vidim bas razlog, mozda je u OnPropUpdate?
Aequam memento rebus in arduis servare mentem.

isto to mi se dogadja i sa kucama,kupim i padne server... :S

Citat: .:RTV:. poslato Februar 04, 2011, 21:12:13 POSLE PODNE
isto to mi se dogadja i sa kucama,kupim i padne server... :S
Mod od 0 ili?
For ya...


I'd catch a grenade for ya
Throw my hand on a blade for ya
I'd jump in front of a train for ya
You know I'd do anything for ya


BestOne.exe | Mapper | n00b Skripter | Bruno Mars Fan | Balkan SA:MP <3 | Fifa 11 <3


For ya...




Kazes da idem na xf a nmg ti pomoc, ne vidim gresku, sve je ok...
Jedino ovo:
if(keycar != 999)
Sta ti je taj 999, mozda zbog toga crasha?
For ya...


I'd catch a grenade for ya
Throw my hand on a blade for ya
I'd jump in front of a train for ya
You know I'd do anything for ya


BestOne.exe | Mapper | n00b Skripter | Bruno Mars Fan | Balkan SA:MP <3 | Fifa 11 <3


For ya...