SA-MP Forums Archive
Y_INI Problem ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI Problem ! (/showthread.php?tid=599176)



Y_INI Problem ! [FIXED~~!] - Amunra - 22.01.2016

FIXED !
Never Mind!


Re: Y_INI Problem ! - Amunra - 22.01.2016

No One Can Help !!
Please Help !!


Re: Y_INI Problem ! - amirm3hdi - 22.01.2016

Did you load the include correctly?

Код:
#include <YSI\y_ini>



Re: Y_INI Problem ! - Amunra - 22.01.2016

Quote:
Originally Posted by amirm3hdi
Посмотреть сообщение
Did you load the include correctly?

Код:
#include <YSI\y_ini>
I Have Been Load the Include Correctly But .. The Is That !
You Know to Fix that ?


Re: Y_INI Problem ! - amirm3hdi - 22.01.2016

Quote:
Originally Posted by Amunra
Посмотреть сообщение
I Have Been Load the Include Correctly But .. The Is That !
You Know to Fix that ?
I've never used INI file reading/writing, I use mysql and json,
But I know when a function is undefined, you never defined it or you're missing the include.


Re: Y_INI Problem ! - Amunra - 22.01.2016

I Use Correctly Include
PHP код:
#include <a_samp>
#include <YSI\y_ini>
#include <zcmd> 
That's My Using Include !
What the Problem ?


Re: Y_INI Problem ! - amirm3hdi - 22.01.2016

Try to use the length parameter.

Код:
forward load_gang_data_basic(playerid, name[], value[]); 
public load_gang_data_basic(playerid, name[], value[]) 
{ 
    INI_String("Gang Owner", Gang[playerid][order], sizeof(Gang[playerid][order]));
    INI_String("Gangs Member", Gang[playerid][gid], sizeof(Gang[playerid][gid]));
}
Код:
INI_String(name[], variable , length );



Re: Y_INI Problem ! - Amunra - 22.01.2016

Quote:
Originally Posted by amirm3hdi
Посмотреть сообщение
Try to use the length parameter.

Код:
forward load_gang_data_basic(playerid, name[], value[]); 
public load_gang_data_basic(playerid, name[], value[]) 
{ 
    INI_String("Gang Owner", Gang[playerid][order], sizeof(Gang[playerid][order]));
    INI_String("Gangs Member", Gang[playerid][gid], sizeof(Gang[playerid][gid]));
}
Код:
INI_String(name[], variable , length );
Never Mind,
Now I Fixed That !

I Forget to Add Value !

PHP код:
    INI_String("Gang Owner"Gang[playerid][order] ,24);
    
INI_String("Gangs Member"Gang[playerid][gid] ,4); 
And enum value !

Thanks For Respond !


Note:FIXED!!


Re: Y_INI Problem ! - amirm3hdi - 22.01.2016

Quote:
Originally Posted by Amunra
Посмотреть сообщение
Never Mind,
Now I Fixed That !

I Forget to Add Value !

PHP код:
    INI_String("Gang Owner"Gang[playerid][order] ,24);
    
INI_String("Gangs Member"Gang[playerid][gid] ,4); 
And enum value !

Thanks For Respond !


Note:FIXED!!
LOL That's what I told you, LENGTH PARAMETER...
Damn