How can I add a new line to character files ?
#3

well you can make ur job easier by adding the line at OnPlayerConnect so when player connects and needs to use the new feature it has the file^^:
for example when you add a new car system and you use dini system
Код:
public OnPlayerConnect(playerid)
{
       new path[100], pName[100];
       GetPlayerName(playerid, pName,sizeof(pName));
       format(path, sizeof(path), "%s.ini");
       dini_Set(path, carkey, -1)//-1 is means that player doesn't own any car
       //rest of the code
}
I hope this helps
Reply


Messages In This Thread
How can I add a new line to character files ? - by fuem1907 - 17.09.2012, 17:01
Re: How can I add a new line to character files ? - by fuem1907 - 17.09.2012, 23:23
AW: How can I add a new line to character files ? - by arvifilter - 18.09.2012, 00:15

Forum Jump:


Users browsing this thread: 3 Guest(s)