D:\sa-mp\tadmin.pwn(30) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(40) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : error 017: undefined symbol "POCKET_MONEY" D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
D:\sa-mp\tadmin.pwn(30) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(40) : warning 217: loose indentation
D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : error 017: undefined symbol "POCKET_MONEY" D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : fatal error 107: too many error messages on one line
Originally Posted by lrZ^ aka LarzI
Код:
D:\sa-mp\tadmin.pwn(30) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(40) : warning 217: loose indentation Код:
D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : error 017: undefined symbol "POCKET_MONEY" D:\sa-mp\tadmin.pwn(40) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(40) : fatal error 107: too many error messages on one line |
#define POCKET_MONEY 5000
Originally Posted by Outbreak
it should work if you put
pawn Код:
You can change "5000" to your own amount of money you want the players to spawn with. |
D:\sa-mp\tadmin.pwn(31) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(41) : warning 217: loose indentation D:\sa-mp\tadmin.pwn(41) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(41) : warning 215: expression has no effect D:\sa-mp\tadmin.pwn(41) : error 001: expected token: ";", but found "]" D:\sa-mp\tadmin.pwn(41) : error 029: invalid expression, assumed zero D:\sa-mp\tadmin.pwn(41) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
gSettings[POCKET_MONEY] = dini_Int(SettingFile,"PocketMoney");
Originally Posted by Frank_Tesla
Just move your defintions above public OnFilterScriptInit()
Its going to do that for all your arrays, its just showing you the first one the script is coming across. |
#include <a_samp> #include <dini> #include <dutils> #define FILTERSCRIPT #if defined FILTERSCRIPT #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOUR_GREEN 0x33AA33AA #define COLOUR_RED 0xAA3333AA #define COLOUR_YELLOW 0xFFFF00AA #define COLOUR_LIGHTBLUE 0x33CCFFAA #define COLOUR_ORANGE 0xFF9900AA #define gCommands #define gSettings #define POCKET_MONEY 5000 #pragma unused ret_memcpy #define PlayerFile "AdminScript/Users/%s.ini" #define SettingFile "AdminScript/Settings/MainSettings.ini" #define CommandFile "AdminScript/Settings/Commands.ini"
#if defined filterscript