05.09.2013, 20:10
well i put my code in that way.
for(new id = 0; id < MAX_CASAS;id++)
if(pickupid == saidacasa[id])//Checking if the checkpointid is an House exit
{
SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);
SetPlayerInterior(playerid,GetPVarInt(playerid,"Pl ayersInteriorHouse"));
SetPlayerVirtualWorld(playerid,GetPVarInt(playerid ,"PlayerVirtualWorldHouse"));
return 1;
}
in enum i have the float don't wory about that.
for(new id = 0; id < MAX_CASAS;id++)
if(pickupid == saidacasa[id])//Checking if the checkpointid is an House exit
{
SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);
SetPlayerInterior(playerid,GetPVarInt(playerid,"Pl ayersInteriorHouse"));
SetPlayerVirtualWorld(playerid,GetPVarInt(playerid ,"PlayerVirtualWorldHouse"));
return 1;
}
in enum i have the float don't wory about that.