22.08.2010, 18:36
(
Последний раз редактировалось iggy1; 22.08.2010 в 18:40.
Причина: mistake on the loop
)
If you use a streamer that streams checkpoints they can conflict. Also if you dont use a streamer try incognitos streamer you can create checkpoints for all players in one fuction and it has a checkpointid parameter meaning you can get rid of that timer with the two loops. And just do the following.
prefferably inside the funtion that ceates your houses.
public OnPlayerEnterDynamicCP(playerid, checkpointid)
Its alot simpler than the code you have and also more efficient. Note CreateDynamicCP is for all players if the second to last parameter is -1. But it will only stream 1 a time per player
pawn Код:
new CPID[MAX_HOUSES];//global
pawn Код:
CPID[houseid] = CreateDynamicCP(h2Info[m][iconx], h2Info[m][icony], h2Info[m][iconz]2.0,0,0,-1,50.0);
pawn Код:
for(new h; h<=MAX_HOUSES;h++)
{
if(checkpointid == CPID[h])
{
//do stuff here eg, show stats
}
}