i need help
#1

I got some erors in script

Erors:
Код:
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.
script


http://slo.pastebin.com/d45b7705a

Reply
#2

Код:
D:\sa-mp\tadmin.pwn(30) : warning 217: loose indentation
D:\sa-mp\tadmin.pwn(40) : warning 217: loose indentation
http://forum.sa-mp.com/index.php?topic=61893.0

Код:
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
Probally just because you haven't defined pocket money (I bet it's an array?)
Reply
#3

Quote:
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
http://forum.sa-mp.com/index.php?topic=61893.0

Код:
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
Probally just because you haven't defined pocket money (I bet it's an array?)
If i define pocket_money or etc get more errors :S
Reply
#4

it should work if you put

pawn Код:
#define POCKET_MONEY 5000
Put that up the put of your script, before any functions and callbacks.

You can change "5000" to your own amount of money you want the players to spawn with.
Reply
#5

Quote:
Originally Posted by Outbreak
it should work if you put

pawn Код:
#define POCKET_MONEY 5000
Put that up the put of your script, before any functions and callbacks.

You can change "5000" to your own amount of money you want the players to spawn with.
still get erors :S

Код:
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.
Reply
#6

Just what I told ya...
pocket_money is an array variable
show us the lines please
Reply
#7

Код:
gSettings[POCKET_MONEY] = dini_Int(SettingFile,"PocketMoney");
Reply
#8

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.
Reply
#9

Quote:
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.
I have

Код:
#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"
Reply
#10

Do // before
pawn Код:
#if defined filterscript
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)