28.08.2011, 02:59
Sup guys? I can't seem to figure out why this is not working. Here is my code:
It stops at "print("2");" and I can't figure out why. Any insight?
pawn Code:
#define USER_FILE "/Accounts/%s.ini"
stock UserFile(playerid)
{
new file[128];
format(file, sizeof(file), USER_FILE, GetPName(playerid));
return file;
}
switch(dialogid)
{
case 1:
{
if(!response) return Kick(playerid);
print("1");
if(!strlen(inputtext)) return ShowRegister(playerid);
print("2");
new INI:File = INI_Open(UserFile(playerid));
print("3");
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
print("4");
}
}