[y_ini]Loading code params
#1

Hello guys

i'm working from V.I.P Code when you redeem it you grand VIP Level...

My problem i can't load V.I.P Level and V.I.P Owner from file...

There is VIP Code file...

File name is Code - 658n61OHUo
Код:
Code = 658n61OHUo
Level = 1
Owner = DeadMasterBG
Buyer = DeadMasterBG
Write what are you need to show... and i'll show it...
Reply
#2

Well, for starters show the code you use to try loading this file
Reply
#3

Код:
public VIPCode_data(inputtext, name[], value[])
{
	INI_String("Code", RedeemVIPCode,10);
	INI_Int("Level", RedeemVIPCodeLevel);
	INI_String("Owner", RedeemVIPCodeOwner,40);
	INI_String("Buyer", RedeemVIPCodeBuyer,40);
	return 1;
}
Код:
INI_ParseFile(code, "VIPCode_%s");
Reply
#4

Looks like you don't have tag in your .ini file. So, change
pawn Код:
INI_ParseFile(code, "VIPCode_%s");
//to
INI_ParseFile(code, "VIPCode");

//and
public VIPCode_data(inputtext, name[], value[])
//to
public VIPCode(inputtext, name[], value[])
OR add a tag to your ini, so it looks like
pawn Код:
[data]
Code = 658n61OHUo
Level = 1
Owner = DeadMasterBG
Buyer = DeadMasterBG
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)