SA-MP Forums Archive
i need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i need help (/showthread.php?tid=71436)



i need help - hyp3r - 01.04.2009

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




Re: i need help - LarzI - 01.04.2009

Код:
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?)


Re: i need help - hyp3r - 01.04.2009

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


Re: i need help - Outbreak - 01.04.2009

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.


Re: i need help - hyp3r - 01.04.2009

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.



Re: i need help - LarzI - 01.04.2009

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


Re: i need help - hyp3r - 01.04.2009

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



Re: i need help - Frank_Tesla - 01.04.2009

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.


Re: i need help - hyp3r - 01.04.2009

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"



Re: i need help - Klutty - 01.04.2009

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