Y_INI Question Fast !
#1

Hi,
I Just "ASK" How to Replace INI File
Example :
PHP код:
[GANGSAVE]
Gang Name Test 
If Player Change they Gang Name INI Make a Replace Like
PHP код:
[GANGSAVE]
Gang Name TestAaa 
In My Save File ,, Get Problem Like
PHP код:
[GANGSAVE]
Gang Name :Test
Gang Name 
TestAaa// ini make a New String But I Want to Replace that But The INI Set to New String !
Use function INI_WriteString ,Thats Right Or False 
Tell me with What i change this 
Reply
#2

Show the line that you save the new player gang!
Reply
#3

i think i see your problem
you need to do something like
INI_SetTag(file,"GANGSAVE");
and then
INI_WriteString(file,"Gang Name","TestAaa"
if you dont set the tag y_ini will write a new line
Reply
#4

Quote:
Originally Posted by xTURBOx
Посмотреть сообщение
i think i see your problem
you need to do something like
INI_SetTag(file,"GANGSAVE");
and then
INI_WriteString(file,"Gang Name","TestAaa"
if you dont set the tag y_ini will write a new line
I Do SetTag at my stock SavePlayerData(playerid);
But On Load data I Not Do that I Do(At Loaddata):

PHP код:
    INI_Int("Gang Owner"Gang[playerid][order]);
    
INI_Int("Gangs Member"Gang[playerid][gid]);
    
INI_String("Gang Name"Ganginfo[Gang[playerid][gid]][grname] ,75); //But I Not Make a SetTag 
Thats right ? Or I Must Put SetTag at LoadData?
Reply
#5

Anyone Know to fix that ?
Reply
#6

Propably you can't have space between words try "Gang_Name"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)