Spawn Weapon saving system
#7

It does work but this requires you to have a a login system using dudb so that

pawn Код:
udb_UserSetInt(ReturnAccount(playerid), strWep, wepinfo[i][0]);
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.

pawn Код:
stock ReturnAccount(playerid)
{
  new PlayerName[30], str[30];
  GetPlayerName(playerid, PlayerName, 30);
  format(str, 30, "%s", PlayerName);
  return PlayerName;
}
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!


Reply


Messages In This Thread
Spawn Weapon saving system - by g@k - 21.01.2009, 16:59
Re: Spawn Weapon saving system - by Rks25 - 21.01.2009, 17:38
Re: Spawn Weapon saving system - by g@k - 21.01.2009, 21:42
Re: Spawn Weapon saving system - by ShizNator - 23.01.2009, 21:48
Re: Spawn Weapon saving system - by Derksen123 - 05.06.2009, 09:49
Re: Spawn Weapon saving system - by Derksen123 - 05.06.2009, 12:34
Re: Spawn Weapon saving system - by ShizNator - 05.06.2009, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)