11.12.2014, 19:50
Hello guys! I have a problem :/
I made simple entrance system ,but now when the system saves an entrance :
It sets the Exit cordinates to zero :
Whats wrong?
I made simple entrance system ,but now when the system saves an entrance :
Код:
Name = Ligonine Interior = 3 VirtualWorld = 1 DarboPradzia = 0 DarboPabaiga = 24 EnterX = 1607.177978 EnterY = 1817.166625 EnterZ = 10.820300 ExitX = -204.505996 ExitY = -1736.048583 ExitZ = 675.768676
pawn Код:
forward LoadEntrances(e, name[], value[]);
public LoadEntrances(e, name[], value[])
{
INI_String("Name", eInfo[e][Name],75);
INI_Int("Interior", eInfo[e][Settings][0]);
INI_Int("VirtualWorld", eInfo[e][Settings][1]);
INI_Int("DarboPradzia", eInfo[e][EnterHours][0]);
INI_Int("DarboPabaiga", eInfo[e][EnterHours][1]);
INI_Float("EnterX", eInfo[e][enterPos][0]);
INI_Float("EnterY", eInfo[e][enterPos][1]);
INI_Float("EnterZ", eInfo[e][enterPos][2]);
INI_Float("ExitY", eInfo[e][exitPos][0]);
INI_Float("ExitY", eInfo[e][exitPos][1]);
INI_Float("ExitZ", eInfo[e][exitPos][2]);
new String[108];
format( String, 108, "%s\nSpauskite [ENTER]", eInfo[e][Name]);
eInfo[e][EntrancesText] = CreateDynamic3DTextLabel(String, CHATCOLOR_RED, eInfo[e][enterPos][0], eInfo[e][enterPos][1], eInfo[e][enterPos][2], 20.0, -1, -1, 0,-1, -1 , -1, 100);
eInfo[e][ExitText] = CreateDynamic3DTextLabel(String, CHATCOLOR_RED, eInfo[e][exitPos][0], eInfo[e][exitPos][1], eInfo[e][exitPos][2], 20.0, -1, -1, 0, eInfo[e][Settings][1], eInfo[e][Settings][0], -1, 100);
printf("%f",eInfo[e][enterPos][0]);
printf("%f",eInfo[e][enterPos][1]);
printf("%f",eInfo[e][enterPos][2]);
printf("%f",eInfo[e][exitPos][0]);
printf("%f",eInfo[e][exitPos][1]);
printf("%f",eInfo[e][exitPos][2]);
return 1;
}
Код:
[22:24:19] 1607.177978 [22:24:19] 1817.166625 [22:24:19] 10.820300 [22:24:19] 0.000000 [22:24:19] 0.000000 [22:24:19] 0.000000