Quote:
Originally Posted by Kraeror
NVM GUYS, can you tell me why this:
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(playerid))
{
DeletePlayer3DTextLabel(i, HouseInfo[houseid][hLabel]);
}
}
doesn't works?
Here is where I created it:
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(playerid))
{
format(string, sizeof(string), "");
HouseInfo[h][hLabel] = CreatePlayer3DTextLabel(i, string, COLOR_HOUSE, HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1);
}
}
|
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.