Coordinates help
#10

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
NVM GUYS, can you tell me why this:
PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
IsPlayerConnected(playerid))
    {
        
DeletePlayer3DTextLabel(iHouseInfo[houseid][hLabel]);
    }

doesn't works?

Here is where I created it:
PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
IsPlayerConnected(playerid))
    {
        
format(stringsizeof(string), "");
        
HouseInfo[h][hLabel] = CreatePlayer3DTextLabel(istringCOLOR_HOUSEHouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ], 15.0INVALID_PLAYER_IDINVALID_VEHICLE_ID1);
    }

I'm not sure why you're looping through all players to delete a player3dtextlabel (only seen by one player) but the reason behind could be the houseinfo[houseid][hlabel] i don't see a variable for playerid so is till dunno why you made a loop but show the enum or the variables set for houseinfo.
Reply


Messages In This Thread
Coordinates help - by Kraeror - 24.12.2017, 16:21
Re: Coordinates help - by RogueDrifter - 24.12.2017, 16:23
Re: Coordinates help - by Kraeror - 24.12.2017, 16:26
Re: Coordinates help - by RogueDrifter - 24.12.2017, 16:29
Re: Coordinates help - by Kraeror - 24.12.2017, 16:33
Re: Coordinates help - by RogueDrifter - 24.12.2017, 16:37
Re: Coordinates help - by Kraeror - 24.12.2017, 16:39
Re: Coordinates help - by RogueDrifter - 24.12.2017, 16:43
Re: Coordinates help - by Kraeror - 24.12.2017, 16:56
Re: Coordinates help - by RogueDrifter - 24.12.2017, 16:59

Forum Jump:


Users browsing this thread: 5 Guest(s)