Player's Car Icon doesn't show up :(
#1

Hello there,
I have this timer setup, it works when a player logs in and in his info file the part ownscar==1
needless to say timer is loaded on gamemode init :P


forward OwnCarIcon();
public OwnCarIcon(){

for (new carownedplayer = 0; carownedplayer < MAX_PLAYERS; carownedplayer++){
if (IsPlayerConnected(carownedplayer)){
if(PlayerInfo[carownedplayer][logged] == 1) {
if(PlayerInfo[carownedplayer][ownscar] == 1) {
new Floatpx,Floatpy,Floatpz;
GetVehiclePos((PlayerInfo[carownedplayer][ownedcar]),ppx,ppy,ppz);
RemovePlayerMapIcon(carownedplayer, CarIcon[carownedplayer]);
SetPlayerMapIcon(carownedplayer, CarIcon[carownedplayer], ppx, ppy,ppz, 1, COLOR_CAR);
}
}
}

}
}

it just doesnt do anything :O
it's supposed to show a Grey Square on radar on player's car position
Reply


Messages In This Thread
Player's Car Icon doesn't show up :( - by aNdReSkKkK - 17.01.2010, 17:37
Re: Player's Car Icon doesn't show up :( - by s0nic - 17.01.2010, 17:52
Re: Player's Car Icon doesn't show up :( - by aNdReSkKkK - 17.01.2010, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)