Dynamic Checkpoints Problem
#9

Quote:
Originally Posted by PoniStar
Посмотреть сообщение
hi again , guys i think i found the problem , so if i start server and join [with out doing anything before login , i mean this is my first login !] checkpoint will show prefectlly but now, i got a dynamic checkpoint by using /givecp1 command , and it will give me this cp :
Код:
		new rand = random(sizeof(playersetcheckpoints));
		SetPlayerCp[playerid] = CreateDynamicCP(cp1[rand][0],cp1[rand][1],cp1[rand][2],cp1[rand][3], -1, -1, playerid, -1);
and when i exit vehicle this cp will destroy like this : DestroyDynamicCp[SetPlayerCp[playerid]];
and now if i get another cp with another command like /mycp2 and this cp code:
Код:
		new rand = random(sizeof(playersetcheckpoints));
		PlllayerCp2[playerid] = CreateDynamicCP(cp2[rand][0],cp2[rand][1],cp2[rand][2],cp2[rand][3], -1, -1, playerid, -1);
and if their Variables be same this problem will not show up !
the checkpoint will show for 1 second and hide again ! what i'am doing on wrong way ?
guyz i just added this line after Destroying the SetPlayerCp[playerid] checkpoint:
Код:
	SetPlayerCp[playerid] = 0;
and i think its some how get fixed ! whats your idea can be related to this
Reply


Messages In This Thread
Dynamic Checkpoints Problem - by PoniStar - 26.01.2019, 06:21
Re: Dynamic Checkpoints Problem - by PoniStar - 26.01.2019, 09:30
Re: Dynamic Checkpoints Problem - by PoniStar - 27.01.2019, 16:02
Re: Dynamic Checkpoints Problem - by PoniStar - 27.01.2019, 16:49
Re: Dynamic Checkpoints Problem - by PoniStar - 27.01.2019, 17:45
Re: Dynamic Checkpoints Problem - by SymonClash - 27.01.2019, 19:55
Re: Dynamic Checkpoints Problem - by PoniStar - 28.01.2019, 09:14
Re: Dynamic Checkpoints Problem - by PoniStar - 28.01.2019, 11:49
Re: Dynamic Checkpoints Problem - by PoniStar - 28.01.2019, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)