Eu queria criar uma lista de veiculos renderizados pelos players pra depois fazer um loop sobre ela, percorro o loop o servidor laga e trava todo
O que eu to fazendo de errado?
quando eu executo isso aqui crasha tudo
E printa milhares de zeros no server_log.txt
O que eu to fazendo de errado?
Código:
new Iterator:StreamedVehicles[MAX_PLAYERS]<MAX_VEHICLES>;
Código:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
Iter_Add(StreamedVehicles[forplayerid], vehicleid);
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
Iter_Remove(StreamedVehicles[forplayerid], vehicleid);
return 1;
}
quando eu executo isso aqui crasha tudo
Código:
CMD:test(playerid) {
foreach (new vehid : StreamedVehicles[playerid]) {
printf("%i", vehid);
}
return true;
}
E printa milhares de zeros no server_log.txt
Código:
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0
[19:28:05] 0