Random Character Assignment - Y_INI
#3

PHP Code:
enum gInfo
{
    
Test[128]
}
new 
gVar[MAX_PLAYERS][gInfo];
public 
LoadUser_data(playerid,name[],value[])
{
    
INI_String("Test",gVar[playerid][Test], 128);
     return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    new 
INI:File INI_Open(Userpath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteString(File,"Test"gVar[playerid][Test]);
    
INI_Close(File);
}
YCMD:test(playeridparams[], help)
{
    
#pragma unused help
    #pragma unused params
    
new string[128];
    
format(stringsizeof(string), "Testing...");
    
gVar[playerid][Test] = strlen(string);
    return 
1;

From the file.
PHP Code:
Test = * 
Reply


Messages In This Thread
Random Character Assignment - Y_INI - by Kush - 23.08.2011, 02:46
Re: Random Character Assignment - Y_INI - by Bakr - 23.08.2011, 02:47
Re: Random Character Assignment - Y_INI - by Kush - 23.08.2011, 02:54
Re: Random Character Assignment - Y_INI - by Kush - 23.08.2011, 10:30
Re: Random Character Assignment - Y_INI - by PrawkC - 23.08.2011, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)