SA-MP Forums Archive
Problem with float - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with float (/showthread.php?tid=256505)



Problem with float - [KO]KillerThriller - 21.05.2011

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;



Re: Problem with float - (SF)Noobanatior - 21.05.2011

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



Re: Problem with float - [KO]KillerThriller - 21.05.2011

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