13.08.2016, 15:43
printf("VALUE = %d", VALUE);
for(new i = 0; i < VALUE; i ++)
All work.
new Info[MAX_PLAYERS][VALUE][ENUM];
Set it to the highest value being used.
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;
}
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;
}
new Info[MAX_PLAYERS][VALUE][ENUM];
Set it to the highest value being used.