mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Implement and match n_GetWeaponName(...)
This commit is contained in:
parent
7767dc226c
commit
d4b24be604
@ -381,10 +381,13 @@ static cell AMX_NATIVE_CALL n_SetWorldTime(AMX *amx, cell *params)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// native GetWeaponName(weaponid, const weapon[], len)
|
||||||
static cell AMX_NATIVE_CALL n_GetWeaponName(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_GetWeaponName(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: GetWeaponName
|
CHECK_PARAMS(3);
|
||||||
return 0;
|
if(params[1] > WEAPON_COLLISION) return 0;
|
||||||
|
|
||||||
|
return set_amxstring(amx,params[2],pNetGame->GetWeaponName(params[1]),params[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user