Wierd problem, please help [++REP]
#1

Im using a car system and when you type a command /cars, you see your cars

pawn Code:
new globalcar1[128];
new globalcar2[128];
new OnlyForYou[MAX_PLAYERS];
new OnlyForYou2[MAX_PLAYERS];
new model1[MAX_PLAYERS];
new model2[MAX_PLAYERS];
pawn Code:
new stringV[256];
            if(PlayerInfo[playerid][pCarKey1] > 999)
            {
                new CarFile[35];
                format(CarFile,sizeof(CarFile),"Auta/%d.ini",PlayerInfo[playerid][pCarKey1]);
                model1[playerid] = dini_Int(CarFile,"ModelID");
                OnlyForYou[playerid] = format(globalcar1,sizeof(globalcar1),"%s\t\t (UID: %d)",aVehicleNames[ model1[playerid] - 400 ],PlayerInfo[playerid][pCarKey1]);
            }
            if(PlayerInfo[playerid][pCarKey2] > 999)
            {
                new CarFile2[35];
                format(CarFile2,sizeof(CarFile2),"Auta/%d.ini",PlayerInfo[playerid][pCarKey2]);
                model2[playerid] = dini_Int(CarFile2,"ModelID");
                OnlyForYou2[playerid] = format(globalcar2,sizeof(globalcar2),"%s\t\t (UID: %d)",aVehicleNames[ model2[playerid] - 400 ],PlayerInfo[playerid][pCarKey2]);
            }
            format(stringV,sizeof(stringV),"%s\n%s",globalcar1,globalcar2);
            ShowPlayerDialog(playerid, VCMD, DIALOG_STYLE_LIST, "[TWOJE POJAZDY]", stringV, "Wybierz", "Zamknij");
pCarKey1 is your car1 and pCarKey2 is your car2, lets say I have SULTAN as car1 and Elegy as car2,
when I type this command I can see that, but when somone else on the server does it who have car1 Sultan car2 none, they see their sultan and my elegy.

Any ideas?

BTW (CarKey of 999, means you dont have a car in this slot)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)