a_samp.inc 0.3z to 0.3.7 changes
#3

Quote:
Originally Posted by Yashas
Посмотреть сообщение
const modifier makes a variable unchangeable.But the purpose of using const in function parameters is to allow the compiler to make optimizations.

addsiren is self-explanatory.
I don't ask anything for addsiren.

but how store the weapon name if the parameter is unchangeable?
native GetWeaponName(weaponid, const weapon[], len);

another example:
0.3.7:
native SetPlayerName(playerid, const name[]); //ok good for SetPlayerName(1,"Miguel"); //"Miguel" is constant
native GetPlayerName(playerid, const name[], len); //what? xd
Reply


Messages In This Thread
a_samp.inc 0.3z to 0.3.7 changes - by Miguel_Leopold - 14.06.2015, 16:36
Re: a_samp.inc 0.3z to 0.3.7 changes - by Yashas - 14.06.2015, 16:44
Respuesta: Re: a_samp.inc 0.3z to 0.3.7 changes - by Miguel_Leopold - 14.06.2015, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)