YINI Parsefile.
#1

Hello!
I want to load vehicle's infos from an .ini file. I'm using YINI. The problem is: parameters can't be loaded. The problem comes from INI_ParseFile (bad configuration by myself) or my public function LoadUserV.
There is the full code: http://pastebin.com/6AQ58PNS
I'm learning pawn and English. Sorry for mistakes.
Have a good day
Reply
#2

Show us your enumerator that to use for the vehicle loading.

EDIT: I think "PlayerVehicle" enumerator.
EDIT 2: INI_ParseFile(chemin, "LoadUserV_%i", .bExtra = true, .extra = i); <- problem is here i think.
Reply
#3

Yeah i think the problem is here but I don't know how to resolve it.. :/
I mean there is a lot of parameter for INI_Parsefile.
Reply
#4

Show me the "enum PlayerVehicle".
Reply
#5

Код:
#define MAX_VEHICLE 300

enum vInfo
{
	vID,
	Float:vX,
	Float:vY,
	Float:vZ,
	Float:vZr,
	vColor1,
	vColor2,
	Float:vHealth,
	vModel,
	vPrio[MAX_PLAYER_NAME],
	vTake
}

new PlayerVehicle[MAX_VEHICLE][vInfo];
Reply
#6

Any ideas ALIScripter ? ^^
Reply
#7

(ninja) BUMP !
Reply
#8

I still needing help!
Reply
#9

it prints printf("Vehicle ID : %i", i); ? you need also add tag before INI_Write, INI_Set_Tag or something
Reply
#10

try this im not sure if it work or not
change
PHP код:
INI_ParseFile(chemin"LoadUserV_%i", .bExtra true, .extra i); 
to
PHP код:
INI_ParseFile(chemin"LoadUserV_data", .bExtra true, .extra i); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)