26.02.2017, 15:36
Cambia йsto:
Por йsto:
El otro problema lуgico es que posiblemente no estйs reiniciando PlayerInfo[playerid][Level] y PlayerInfo[playerid][pVip], entonces al spawnear crea los labels.
Lo otro es que cada vez que spawnee el jugador crearб los label's de forma infinita, para evitar йsto aсade la condiciуn que verifique si tiene creado o no el label:
PHP код:
if(PlayerInfo[playerid][Level] > 0) DestroyDynamic3DTextLabel(label1[playerid]);
if(PlayerInfo[playerid][pVip] > 0) DestroyDynamic3DTextLabel(label2[playerid]);
PHP код:
if(IsValidDynamic3DTextLabel(label1[playerid])) DestroyDynamic3DTextLabel(label1[playerid]);
if(IsValidDynamic3DTextLabel(label2[playerid])) DestroyDynamic3DTextLabel(label2[playerid]);
Lo otro es que cada vez que spawnee el jugador crearб los label's de forma infinita, para evitar йsto aсade la condiciуn que verifique si tiene creado o no el label:
PHP код:
if(!IsValidDynamic3DTextLabel(label1[playerid]))
if(!IsValidDynamic3DTextLabel(label2[playerid]))