Object problem.
#6

Try to put [MAX_PLAYERS] for towers and make one for each player... So do it like this:

Код:
    tower[playerid] = CreateObject(...);
And when a player disconnects just destroy the tower if that player had one...
Код:
//Under public OnPlayerDisconnect(playerid)
DestroyObject(tower[playerid]);
Reply


Messages In This Thread
Object problem. - by XtremeRz - 08.06.2016, 02:13
Re: Object problem. - by cuzido - 08.06.2016, 03:20
Re: Object problem. - by XtremeRz - 08.06.2016, 04:56
Re: Object problem. - by MTGCrane - 08.06.2016, 06:03
Re: Object problem. - by BornHuman - 08.06.2016, 07:20
Re: Object problem. - by andrejc999 - 08.06.2016, 07:31
Re: Object problem. - by XtremeRz - 08.06.2016, 19:03

Forum Jump:


Users browsing this thread: 2 Guest(s)