Enum epic problem !
#1

Hello guys. Let's say i have an array:
pawn Код:
new const Float: Coords[1][3] =
{
    {2002.8436,-1645.1097,7.17220}
};
and an enumeration
pawn Код:
enum
{
    _X,
    _Y,
    _Z
}
And if I do like this:
pawn Код:
// OnPlayerCommandText
if(!strcmp(cmdtext, "/test", true))
    SetPlayerPos(playerid, Coords[0][_X], Coords[0][_Y], Coords[0][_Z]);
He teleports me somewhere, and i get a very very very big LOW FPS, and i can't move, and it got LAG, and it show me the message: Stay within your world bound !

But if i do like this:
pawn Код:
// OnPlayerCommandText
if(!strcmp(cmdtext, "/test", true))
    SetPlayerPos(playerid, Coords[0][0], Coords[0][1], Coords[0][2]);
It teleports me correctly ...

Why !?
Reply


Messages In This Thread
Enum epic problem ! - by MJ! - 11.07.2011, 14:50
Re: Enum epic problem ! - by fordawinzz - 11.07.2011, 14:54
Re: Enum epic problem ! - by MJ! - 11.07.2011, 14:59
Re: Enum epic problem ! - by Jeffry - 11.07.2011, 15:17
Re: Enum epic problem ! - by MJ! - 11.07.2011, 15:30

Forum Jump:


Users browsing this thread: 2 Guest(s)