23.08.2011, 02:54
(
Last edited by Kush; 23/08/2011 at 10:30 AM.
)
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(playerid, reason)
{
new INI:File = INI_Open(Userpath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File,"Test", gVar[playerid][Test]);
INI_Close(File);
}
YCMD:test(playerid, params[], help)
{
#pragma unused help
#pragma unused params
new string[128];
format(string, sizeof(string), "Testing...");
gVar[playerid][Test] = strlen(string);
return 1;
}
PHP Code:
Test = *