01.01.2019, 09:02
I had stop scripting for a good while now and one of my friends asked me to make them a ATM system for his DM server, I was building it with y_ini since his server system is ini based, anyways i made the system well, it creates and deletes the atm's as intended, it saves them aswell but when i'm trying to load them back thats where the issue is. It's giving me errors and i'm kind of sure that I'm doing this right, take a look
PHP код:
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1906) : error 017: undefined symbol "name"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1906) : error 017: undefined symbol "value"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1907) : error 017: undefined symbol "name"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1907) : error 017: undefined symbol "value"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1908) : error 017: undefined symbol "name"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1908) : error 017: undefined symbol "value"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1909) : error 017: undefined symbol "name"
C:\Users\ishalee\Desktop\Pawno\gamemodes\GDM.pwn(1909) : error 017: undefined symbol "value"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
PHP код:
new path[32];
for(new a=0;a<MAX_ATM;a++)
{
format(path,sizeof(path),"GDM/Atms/atm_ID_%d.txt",a);
if(!fexist(path)) continue;
{
INI_Float("aX",atmInfo[a][aX]);//error line 1
INI_Float("aY",atmInfo[a][aY]);//error line 2
INI_Float("aZ",atmInfo[a][aZ]);//error line 3
INI_Float("aA",atmInfo[a][aA]);//error line 4
atmInfo[a][aObject] = CreateDynamicObject(ATM,atmInfo[a][aX],atmInfo[a][aY],atmInfo[a][aZ]-0.5,0.0,0.0,atmInfo[a][aA]-180,-1,-1,-1,150.55);
atmInfo[a][aText] = Create3DTextLabel(""ATM_MSG"",-1,atmInfo[a][aX],atmInfo[a][aY],atmInfo[a][aZ]+1,10.0,0,0);
}
}