15.03.2013, 05:41
creo ke el problema es ke no le estas dando posicion. a las variable
AlquilerInfo[playerid][aEntradaX], AlquilerInfo[playerid][aEntradaY], AlquilerInfo[playerid][aEntradaZ]
AlquilerInfo[playerid][aEntradaX], AlquilerInfo[playerid][aEntradaY], AlquilerInfo[playerid][aEntradaZ]
pawn Код:
#include <a_samp>
#define MAX_HOTELES (8)
new bool:HotelesRenta[MAX_HOTELES]=false;
new Text3D:HotelesRentaText[MAX_HOTELES];
new HotelesRentaPichup[MAX_HOTELES];
new Float:HotelesPos[MAX_HOTELES][3];
public OnFilterScriptInit() {
for(new hotelesid=0; hotelesid<MAX_HOTELES; hotelesid++) {
DestroyPickup(HotelesRentaPichup[hotelesid]);
Delete3DTextLabel(HotelesRentaText[hotelesid]);
//---> ACA DEBERIA IR L OKE CARGA LAS VARIABLES CON LAS POSICIONES
HotelesRentaText[hotelesid] = Create3DTextLabel("_",-1,HotelesPos[0][hotelesid], HotelesPos[1][hotelesid], HotelesPos[2][hotelesid],40.0,-1,-1);
CargarHoteles(hotelesid);
}
return 1;
}
stock CargarHoteles(hotelid) {
if(HotelesRenta[hotelid] == false) {
Update3DTextLabelText(HotelesRentaText[hotelid],-1,"Hotel Desocupado!");
HotelesRentaPichup[hotelesid] = CreatePickup(1273, 1, HotelesPos[0][hotelesid], HotelesPos[1][hotelesid], HotelesPos[2][hotelesid],-1);
}
else if(HotelesRenta[hotelid] == true) {
Update3DTextLabelText(HotelesRentaText[hotelid],-1,"Hotel Ocupado!");
DestroyPickup(HotelesRentaPichup[hotelid]);
}
return 1;
}