Command help
#6

Remade by my self
Quote:

new
pName [ 24 ],
params [ 77 ],
ScoreAmount,
AccountFile [ 70 ],
string [ 90 ]
;
if(sscanf(params, "s[24]", pName, ScoreAmount)) return SendClientMessage(playerid, -1, "/setscore [PlayerName] [Score Amount]");

format(AccountFile, sizeof(AccountFile), "saves/user/%s.ini", pName); //Your_Path should look something like this Users/pds2k12.ini but instead of name you put %s

if(!dini_Exists(AccountFile)) return format(string, sizeof(string), "There is an issue locating '%s' in the database.", pName), SendClientMessage(playerid, -1, string);

if(dini_Exists(AcountFile)) //Errrorss
{
dini_IntSet(AcountFile, "Score", ScoreAmount); //errrorss
}
return 1;
}

errors:
error 017: undefined symbol "AcountFile"
error 017: undefined symbol "AcountFile"
Reply


Messages In This Thread
Command help - by ignas1125 - 19.10.2013, 20:49
Re: Command help - by ignas1125 - 20.10.2013, 06:17
Re: Command help - by kbalor - 20.10.2013, 06:25
Re: Command help - by ignas1125 - 20.10.2013, 09:23
Re: Command help - by Patrick - 20.10.2013, 09:26
Re: Command help - by ignas1125 - 20.10.2013, 09:52
Re: Command help - by EiresJason - 20.10.2013, 09:54
Re: Command help - by ignas1125 - 20.10.2013, 10:00
Re: Command help - by DanishHaq - 20.10.2013, 10:04
Re: Command help - by ignas1125 - 20.10.2013, 10:07

Forum Jump:


Users browsing this thread: 4 Guest(s)