SA-MP Forums Archive
Problem in pawno - 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)
+--- Thread: Problem in pawno (/showthread.php?tid=358464)



Problem in pawno - Morkano - 10.07.2012

Error on
Quote:

gSettings[POCKET_MONEY] = dini_Int(SettingFile, "PocketMoney");

Errors
Quote:

D:\Server\filterscripts\MYSCRIPT.pwn(36) : error 029: invalid expression, assumed zero
D:\Server\filterscripts\MYSCRIPT.pwn(36) : warning 215: expression has no effect
D:\Server\filterscripts\MYSCRIPT.pwn(36) : error 001: expected token: ";", but found "]"
D:\Server\filterscripts\MYSCRIPT.pwn(36) : error 029: invalid expression, assumed zero
D:\Server\filterscripts\MYSCRIPT.pwn(36) : 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: Problem in pawno - coole210 - 10.07.2012

It could be an error of the line above that, pawno gives false information sometimes.


Re: Problem in pawno - clarencecuzz - 10.07.2012

Post lines 30-40.


Re: Problem in pawno - Morkano - 10.07.2012

Quote:

dini_Create(SettingFile);
dini_IntSet(SettingFile, "PocketMoney", 3000);
dini_IntSet(SettingFile, "JailCommands", 0);
dini_IntSet(SettingFile, "AnnounceSeconds", 3);
dini_IntSet(SettingFile, "PassMin", 3);
dini_IntSet(SettingFile, "PassMax", 15);
}

gSettings[POCKET_MONEY] = dini_Int(SettingFile, "PocketMoney");
gSettings[JAIL_COMMANDS] = dini_Int(SettingFile, "JailCommands");
gSettings[ANNOUNCE_SECONDS] = dini_Int(SettingFile, "AnnounceSeconds");
gSettings[PASS_MIN] = dini_Int(SettingFile, "PassMin");
gSettings[PASS_MAX] = dini_Int(SettingFile, "PassMax");
return 1;

this problem


Re: Problem in pawno - Morkano - 10.07.2012

reply please


Re: Problem in pawno - Scrillex - 10.07.2012

Quote:
Originally Posted by Morkano
Посмотреть сообщение
reply please
Код:
dini_Create(SettingFile);
dini_IntSet(SettingFile, "PocketMoney", 3000);
dini_IntSet(SettingFile, "JailCommands", 0);
dini_IntSet(SettingFile, "AnnounceSeconds", 3);
dini_IntSet(SettingFile, "PassMin", 3);
dini_IntSet(SettingFile, "PassMax", 15);
{
// just why it ends and there is no start at new code???? like public or { all I see is ending with {

gSettings[POCKET_MONEY] = dini_Int(SettingFile, "PocketMoney");
gSettings[JAIL_COMMANDS] = dini_Int(SettingFile, "JailCommands");
gSettings[ANNOUNCE_SECONDS] = dini_Int(SettingFile, "AnnounceSeconds");
gSettings[PASS_MIN] = dini_Int(SettingFile, "PassMin");
gSettings[PASS_MAX] = dini_Int(SettingFile, "PassMax");
return 1; 
}



Re: Problem in pawno - Morkano - 10.07.2012

again errors


Re: Problem in pawno - coole210 - 10.07.2012

Quote:
Originally Posted by Morkano
Посмотреть сообщение
reply please
Rule #2:

Quote:

You may only bump your thread after 48 hours has passed since the last reply.

For your issue, show the whole function, from beginning to end. (If you're comfortable with that)


Re: Problem in pawno - ZBits - 10.07.2012

try
pawn Код:
gSettings[POCKET_MONEY] == dini_Int(SettingFile, "PocketMoney");
not sure if its correct


Re: Problem in pawno - reh_007 - 10.07.2012

Wait, If it's Gsetting [Pocket_money] == dini_int(settingsFile, "PocketMoney")"

Goto Line 36, and fix it from their, I guess.