28.10.2013, 23:10
when i use this onplayerdisconnect it doesn't work but if i try it with some random cmd. it works fine...
but...
Код:
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;
}
Код:
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;
}


