Problem with float
#1

Why am i getting these warnings?
pawn Код:
enum hinfo
{
    Float:XPos,
    Float:YPos,
    Float:ZPos,
    Float:TeleXPos,
    Float:TeleYPos,
    Float:TeleZPos,
    Interior,
    Price
}
new HInfo[hinfo][MAX_HOUSES];
pawn Код:
COMMAND:createhouse(playerid,params[])
{
    new Float:x,Float:y,Float:z,ID = HouseCount;
    if(!IsPlayerAdmin(playerid)) return 0;
    GetPlayerPos(playerid,x,y,z);
    HInfo[ID][XPos] = x;
    HInfo[ID][YPos] = y;
    HInfo[ID][ZPos] = z;
    HouseCP[ID] = CreateDynamicCP(x,y,z,HOUSE_CHECKPOINT_SIZE,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid),-1,HOUSE_CHECKPOINT_VIEW_DISTANCE);
    return 1;
}
Код:
C:\Users\Admin\Desktop\Untitled.pwn(58) : warning 213: tag mismatch
C:\Users\Admin\Desktop\Untitled.pwn(59) : warning 213: tag mismatch
C:\Users\Admin\Desktop\Untitled.pwn(60) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Warning lines
pawn Код:
HInfo[ID][XPos] = x;
    HInfo[ID][YPos] = y;
    HInfo[ID][ZPos] = z;
Reply
#2

do this the other way like so
pawn Код:
new HInfo[MAX_HOUSES][hinfo];
Reply
#3

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
do this the other way like so
pawn Код:
new HInfo[MAX_HOUSES][hinfo];
O.M.G. thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)