Quote:
Originally Posted by SickAttack
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!