GetPlayerWeaponData
#1

when i use this onplayerdisconnect it doesn't work but if i try it with some random cmd. it works fine...

Код:
public OnPlayerDisconnect(playerid, reason)
{	
 new am1 ,str[5];
 GetPlayerWeaponData(playerid ,0 ,pInfo[playerid][weapons][0] ,am1); 
  
 format(str ,5 ,"%i" ,pInfo[playerid][weapons][0] );
 SCM(playerid ,-1 ,str); // I get 0
 return 1;
}
but...

Код:
CMD:test(playerid ,params[])
{
  new am1 ,str[5];
 GetPlayerWeaponData(playerid ,0 ,pInfo[playerid][weapons][0] ,am1); 
  
 format(str ,5 ,"%i" ,pInfo[playerid][weapons][0] );
 SCM(playerid ,-1 ,str); // I get 1 ( as i should because i have boxer..)
 return 1;
}
Reply


Messages In This Thread
GetPlayerWeaponData - by detter - 28.10.2013, 23:10
Re: GetPlayerWeaponData - by PaulDinam - 28.10.2013, 23:11
Re: GetPlayerWeaponData - by Patrick - 28.10.2013, 23:12
Re: GetPlayerWeaponData - by detter - 28.10.2013, 23:21
Re: GetPlayerWeaponData - by detter - 29.10.2013, 13:37
AW: GetPlayerWeaponData - by BigETI - 29.10.2013, 13:52
Re: GetPlayerWeaponData - by detter - 29.10.2013, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)