3D HUD
#18

Не по теме, но

PHP код:
public OnPlayerSpawn(playerid

    
po_health[playerid] = INVALID_OBJECT_ID
    if(
po_health[playerid] == INVALID_OBJECT_ID
        
po_health[playerid] = CreateDynamicObject(19475, -100.0, -100.0, -100.00.00.00.0); 
    
SetPVarInt(playerid"spawned"1); 
    return 
1

странная логика. Здесь не нужно po_health[playerid] = INVALID_OBJECT_ID; это надо делать в местах, где объект удаляется, или где он еще не создан (при подключении). Иначе обходим OnPlayerDeath и получаем туеву хучу диких объектов.
Reply


Messages In This Thread
3D HUD - by me1m - 22.02.2016, 05:59
Re: 3D HUD - by Stuntff - 22.02.2016, 06:06
Re: 3D HUD - by me1m - 22.02.2016, 06:24
Re: 3D HUD - by Romz - 22.02.2016, 10:48
Re: 3D HUD - by me1m - 22.02.2016, 10:50
Re: 3D HUD - by Mcc - 22.02.2016, 11:45
Re: 3D HUD - by me1m - 22.02.2016, 11:50
Re: 3D HUD - by Mcc - 22.02.2016, 12:33
Re: 3D HUD - by me1m - 22.02.2016, 12:44
Re: 3D HUD - by Mcc - 22.02.2016, 13:30
Re: 3D HUD - by me1m - 22.02.2016, 13:44
Re: 3D HUD - by Mcc - 22.02.2016, 13:56
Re: 3D HUD - by me1m - 22.02.2016, 14:01
Re: 3D HUD - by Mcc - 22.02.2016, 19:23
Re: 3D HUD - by Romz - 22.02.2016, 19:57
Re: 3D HUD - by me1m - 23.02.2016, 11:25
Re: 3D HUD - by me1m - 23.02.2016, 19:10
Re: 3D HUD - by stabker - 23.02.2016, 19:35
Re: 3D HUD - by me1m - 23.02.2016, 20:11
Re: 3D HUD - by me1m - 24.02.2016, 12:16
Re: 3D HUD - by [Saint] - 24.02.2016, 21:16
Re: 3D HUD - by me1m - 24.02.2016, 21:27
Re: 3D HUD - by OKStyle - 25.02.2016, 17:38
Re: 3D HUD - by me1m - 27.02.2016, 02:38
Re: 3D HUD - by Mcc - 27.02.2016, 05:31
Re: 3D HUD - by me1m - 29.02.2016, 22:25
Re: 3D HUD - by me1m - 04.03.2016, 14:42

Forum Jump:


Users browsing this thread: 5 Guest(s)