#define VALUE VARIABLE
#9

Quote:
Originally Posted by SickAttack
View Post
printf("VALUE = %d", VALUE);

pawn Code:
// ** INCLUDES

#include <a_samp>

// ** DEFINES

#define VALUE strval(inputtext)

// ** MAIN

main()
{
    print("Loaded \"blank.amx\".");

    OnDialogResponse(0, 0, 0, 0, "50");
}

// ** CALLBACKS

public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    printf("%d", VALUE);
    return 1;
}
for(new i = 0; i < VALUE; i ++)

pawn Code:
// ** INCLUDES

#include <a_samp>

// ** DEFINES

#define VALUE strval(inputtext)

// ** MAIN

main()
{
    print("Loaded \"blank.amx\".");

    OnDialogResponse(0, 0, 0, 0, "50");
}

// ** CALLBACKS

public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    for(new i = 0; i < VALUE; i ++)
    {
        printf("%d", i);
    }
    return 1;
}
All work.

new Info[MAX_PLAYERS][VALUE][ENUM];

Set it to the highest value being used.
That's not what i mean't, but thanks!

Thanks Gammix for explanations!
Reply


Messages In This Thread
#define VALUE VARIABLE - by Shinja - 13.08.2016, 14:29
Re: #define VALUE VARIABLE - by PrO.GameR - 13.08.2016, 14:39
Re: #define VALUE VARIABLE - by Misiur - 13.08.2016, 14:40
Re: #define VALUE VARIABLE - by Shinja - 13.08.2016, 14:51
Re: #define VALUE VARIABLE - by PrO.GameR - 13.08.2016, 15:08
Re: #define VALUE VARIABLE - by Shinja - 13.08.2016, 15:42
Re: #define VALUE VARIABLE - by SickAttack - 13.08.2016, 15:43
Re: #define VALUE VARIABLE - by Gammix - 13.08.2016, 15:45
Re: #define VALUE VARIABLE - by Shinja - 13.08.2016, 15:57
Re: #define VALUE VARIABLE - by SickAttack - 13.08.2016, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)