11.12.2014, 11:56
Hello there,
As the title says i made a little function that returns all the players weapons;
I am doing something wrong though because when i want to use the function in a command like here;
it returns just a 0 or a 1...must be something wrong with the string im missing here i guess
As the title says i made a little function that returns all the players weapons;
pawn Код:
stock GetAllPlayerWeapons(playerid)
{
new weapons[13],ammo;
for (new w = 0; w <= 12; w++)
{
GetPlayerWeaponData(playerid,w, weapons[w], ammo);
}
return 1;//weapons;
}
pawn Код:
new outcome[13];
format(outcome,sizeof(outcome),"%d",GetAllPlayerWeapons(playerid));
SendClientMessage(playerid,COLOR_GREEN,outcome);