05.06.2009, 21:11
It does work but this requires you to have a a login system using dudb so that
Will write it in the dudb username file.
ReturnAccount(playerid) is just a simple command that return the account name of the user.
something like so.
You just need to have a file created with your username. example: ShizNator.dudb.sav
also you need to call the commands for them to work.
And no I can't make it work for you. I can't test anything I code in pawn I lost my copy of GTA and can't find a legal copy except the steam version I got and unfortunately it ai'nt compatible with SA:MP.
Anybody who took the time to learn the basics of SA:MP, basic dudb login and text commands
could make this work.
So happy learning and good luck!
pawn Код:
udb_UserSetInt(ReturnAccount(playerid), strWep, wepinfo[i][0]);
ReturnAccount(playerid) is just a simple command that return the account name of the user.
something like so.
pawn Код:
stock ReturnAccount(playerid)
{
new PlayerName[30], str[30];
GetPlayerName(playerid, PlayerName, 30);
format(str, 30, "%s", PlayerName);
return PlayerName;
}
also you need to call the commands for them to work.
And no I can't make it work for you. I can't test anything I code in pawn I lost my copy of GTA and can't find a legal copy except the steam version I got and unfortunately it ai'nt compatible with SA:MP.
Anybody who took the time to learn the basics of SA:MP, basic dudb login and text commands
could make this work.
So happy learning and good luck!