tag problem
#1

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?
Reply
#2

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

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.
Reply
#4

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

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

Then the id is not an integer.
Reply
#7

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

it is a integer
Reply
#8

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

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.
Reply
#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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)