SA-MP Forums Archive
tag problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: tag problem (/showthread.php?tid=462125)



tag problem - caoraivoso3 - 05.09.2013

SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);
well i always get a warning in this line.
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(727) : warning 213: tag mismatch
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(727) : warning 213: tag mismatch
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(727) : warning 213: tag mismatch

can someone helpme?


Re: tag problem - Konstantinos - 05.09.2013

Go to the enum CInfo uses and change:
pawn Код:
entradax
// AND
entraday
// AND
entradaz
To:
pawn Код:
Float: entradax
// AND
Float: entraday
// AND
Float: entradaz



Re: tag problem - caoraivoso3 - 05.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Go to the enum CInfo uses and change:
pawn Код:
entradax
// AND
entraday
// AND
entradaz
To:
pawn Код:
Float: entradax
// AND
Float: entraday
// AND
Float: entradaz
already done that, when i see the errors that is the first thing i did.


Re: tag problem - Dragonsaurus - 05.09.2013

The CInfo[id][entradax], are you using the id as a player id?


Re: tag problem - caoraivoso3 - 05.09.2013

no i am using as house id. see this new CInfo[MAX_CASAS][casas];


Re: tag problem - Konstantinos - 05.09.2013

Then the id is not an integer.


Re: tag problem - caoraivoso3 - 05.09.2013

for(new id = 0; id < MAX_CASAS;id++)

it is a integer


Re: tag problem - Dragonsaurus - 05.09.2013

Then show us the whole callback where that code is in.


Re: tag problem - Konstantinos - 05.09.2013

pawn Код:
#define MAX_CASAS 10

enum casas
{
    Float: entradax,
    Float: entraday,
    Float: entradaz
};

new CInfo[MAX_CASAS][casas];

public OnPlayerConnect( playerid )
{
    for(new id = 0; id < MAX_CASAS;id++) SetPlayerPos(playerid, CInfo[id][entradax], CInfo[id][entraday], CInfo[id][entradaz]);
    return 1;
}
It compiles fine. Make sure that it's float in the enum. The only one left was playerid, but I'm sure it's from a callback and it's not declared.


Re: tag problem - caoraivoso3 - 05.09.2013

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.