tag mismatch i cant fix this shit.
#1

this is the all public

public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new id = 0; id < MAX_CASAS;id++)
if(pickupid == entradacasa[id])
{
new pName[24];//Creating the new var for the players name
GetPlayerName(playerid,pName,24);//Storing the players name
if(CInfo[id][nomedacasa] == 1 && strcmp(CInfo[id][nomedacasa],pName) == 0)//String comparing between the players name and the house owners name, to check if they match.
{
SetPVarInt(playerid,"PlayersInteriorHouse",GetPlay erInterior(playerid));//Storing, so later we can reset it back
SetPVarInt(playerid,"PlayerVirtualWorldHouse",GetP layerVirtualWorld(playerid));//Storing, so later we can reset it back
SetPlayerInterior(playerid,12);//Setting the players interior.
SetPlayerPos(playerid,446.7281,507.0475,1001.4195) ;//Setting the players position.
SetPlayerVirtualWorld(playerid,CInfo[id][vw]);//Preventing players from different houses, finding each other.
{
if(CInfo[id][nomedacasa] == 1 && strcmp(CInfo[id][nomedacasa],pName) != 0)//Checking if the house is owned but the house owner and the players name don't match.
SendClientMessage(playerid,-1,"Nao es dono desta casa.");
}
if(CInfo[id][nomedacasa] == 0)//Simply checking if the house isn't owned.
{
SendClientMessage(playerid,-1,"/comprarcasa para comprar esta casa.");
}
}
if(pickupid == saidacasa[id])//Checking if the checkpointid is an House exit
{
SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);//Setting the players position to checkpoint position +3
SetPlayerInterior(playerid,GetPVarInt(playerid,"Pl ayersInteriorHouse"));//Setting the players interior to the one we stored
SetPlayerVirtualWorld(playerid,GetPVarInt(playerid ,"PlayerVirtualWorldHouse"));//Setting the players virtual world to the one we stored.
}
}
return 1;
}

the problem is that is giving tag mismatch in the SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);

i think the problem is in the id because i replace the entradax, entraday and entradaz and give me the same problem.
help me if you can and thanks
Reply


Messages In This Thread
tag mismatch i cant fix this shit. - by caoraivoso3 - 07.09.2013, 09:38
Re: tag mismatch i cant fix this shit. - by Konstantinos - 07.09.2013, 09:54
Re: tag mismatch i cant fix this shit. - by ArkoUK - 07.09.2013, 09:55
Re: tag mismatch i cant fix this shit. - by caoraivoso3 - 07.09.2013, 10:06
Re: tag mismatch i cant fix this shit. - by Konstantinos - 07.09.2013, 10:07
Re: tag mismatch i cant fix this shit. - by caoraivoso3 - 07.09.2013, 10:26
Re: tag mismatch i cant fix this shit. - by Konstantinos - 07.09.2013, 10:32
Re: tag mismatch i cant fix this shit. - by caoraivoso3 - 07.09.2013, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)