15.08.2013, 21:07
Poxa vida meu comando nгo chama a calback que ta fora do looping wp
Porque isso ?
pawn Код:
command(trabalhar, playerid, params[])
{
if(PlayerInfo[playerid][pClass] == TEAM_TRUCK)
{
if(GetVehicleTrailer(GetPlayerVehicleID(playerid)))
{
rot[playerid] = 0;
for(new wp = 0; wp < sizeof (Locais); wp++ )
{
if(!IsPlayerInRangeOfPoint(playerid, 100000, Locais[wp][X], Locais[wp][Y], Locais[wp][Z]))return true;
rot[playerid]++;
PlayerInfo[playerid][pInfo][rot[playerid]] = Locais[wp][RotaID];
printf("pInfo %d | Rot %d", PlayerInfo[playerid][pInfo][rot[playerid]], rot[playerid]);
}
Chamar(playerid);
}
else SendClientMessage(playerid, -1,"[ERRO] Vocк nгo tem carroceria.");
}
return true;
}
Porque isso ?