const explained please
#8

Quote:
Originally Posted by Runn3R
Посмотреть сообщение
Yeah, I like to be a smartass and set up a value to keep me reminded that i shouldn't use that value or cross that same value.

You can also use sizeof(CameraPosition) to see the actual size if you need to loop it or just check.


Edit: No you can set it empty and the compiler will itself calculate it's size as Vince said.
I am still not sure how to use it

This doesn't work
PHP код:
CMD:buyfuel(playeridparams)
{
    if(
IsPlayerInRangeOfPoint(playerid13.0GasStations[0], GasStations[1], GasStations[2])
    {
    
    }
    return 
1;

Neither this
PHP код:
CMD:buyfuel(playeridparams)
{
    if(
IsPlayerInRangeOfPoint(playerid13.0GasStations)
    {
    
    }
    return 
1;

Reply


Messages In This Thread
const explained please - by AndreiWow - 31.01.2017, 17:12
Re: const explained please - by Runn3R - 31.01.2017, 17:13
Re: const explained please - by AndreiWow - 31.01.2017, 17:17
Re: const explained please - by Runn3R - 31.01.2017, 17:20
Re: const explained please - by Vince - 31.01.2017, 17:21
Re: const explained please - by AndreiWow - 31.01.2017, 17:22
Re: const explained please - by Runn3R - 31.01.2017, 17:24
Re: const explained please - by AndreiWow - 31.01.2017, 17:26
Re: const explained please - by Runn3R - 31.01.2017, 17:27
Re: const explained please - by AndreiWow - 31.01.2017, 17:29

Forum Jump:


Users browsing this thread: 3 Guest(s)