SQL weapons.
#1

How can I get the ALL of the weapons that a person is carrying? As it's going to be saved into the SQL.


Thanks!
Reply
#2

Untested;
pawn Код:
new weapons[MAX_PLAYERS][12];
stock GetAllWeapons(playerid)
{
  for(new i=0; i<=12; i++) weapons[playerid][i] = GetPlayerWeapon(playerid);
}
I'm not certain of the max weapons, but this should work o.o
Reply
#3

Quote:
Originally Posted by BuuGhost
Посмотреть сообщение
Untested;
pawn Код:
new weapons[MAX_PLAYERS][12];
stock GetAllWeapons(playerid)
{
  for(new i=0; i<=12; i++) weapons[playerid][i] = GetPlayerWeapon(playerid);
}
I'm not certain of the max weapons, but this should work o.o
GetPlayerWeapon only returns the gun the player is holding.

Use GetPlayerWeaponData.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)