Problme help please ~not hard~
#1

keep getting dis error :/

Код:
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(47) : error 017: undefined symbol "gSettings"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(47) : error 017: undefined symbol "POCKET_MONEY"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(47) : error 029: invalid expression, assumed zero
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(47) : 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:

pawn Код:
{
        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;
  }

  #endif
help please thank you
Reply
#2

sorry for DP but help me please
Thank you
Reply
#3

gSettings wasn't defined
POCKET_MONEY wasn't defined.

You can't use what you haven't defined.
Reply
#4

fixed -_-
new error but no one helps so ill fix my self
Reply
#5

efeX did help you. It appears to me that you are not grasping the basics of Pawn. I suggest you start with a beginner tutorial, and get a handle of variable declaration / initialization before you get upset that "no one helps".
Reply
#6

You have diniIntSet(pocketmoney blah blah but it just saves to ini file.
You must define PocketMoney and gSettings

#define PocketMoney 3000

for gSettings make a variable ,probably,i don`t know what you need with gSettings
Reply
#7

Quote:
Originally Posted by °Luka°
You have diniIntSet(pocketmoney blah blah but it just saves to ini file.
You must define PocketMoney and gSettings

#define PocketMoney 3000

for gSettings make a variable ,probably,i don`t know what you need with gSettings
thanks ive got errors as i said and here they are

pawn Код:
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(18) : error 017: undefined symbol "SETTINGS_MAIN"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(18) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(19) : error 017: undefined symbol "COMMANDS_MAIN"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(53) : error 017: undefined symbol "POCKET_MONEY"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(54) : error 017: undefined symbol "JAIL_COMMANDS"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(55) : error 017: undefined symbol "ANNOUNCE_SECONDS"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(56) : error 017: undefined symbol "PASS_MIN"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(57) : error 017: undefined symbol "PASS_MAX"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(62) : error 017: undefined symbol "PLAYER_MAIN"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(62) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(77) : error 017: undefined symbol "PLAYER_NAME"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(78) : error 017: undefined symbol "PLAYER_IP"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(79) : error 017: undefined symbol "PLAYER_REGGED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(80) : error 017: undefined symbol "PLAYER_PASS"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(81) : error 017: undefined symbol "PLAYER_LEVEL"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(82) : error 017: undefined symbol "PLAYER_WIRED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(83) : error 017: undefined symbol "PLAYER_JAILED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(84) : error 017: undefined symbol "PLAYER_REGGED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(85) : error 017: undefined symbol "PLAYER_REGGED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(86) : warning 217: loose indentation
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(86) : error 017: undefined symbol "PLAYER_REGGED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(87) : warning 217: loose indentation
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(92) : warning 217: loose indentation
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(92) : error 017: undefined symbol "PLAYER_NAME"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(93) : warning 217: loose indentation
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(93) : error 017: undefined symbol "PLAYER_NAME"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(94) : error 017: undefined symbol "PLAYER_IP"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(95) : error 017: undefined symbol "PLAYER_REGGED"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(96) : error 017: undefined symbol "PLAYER_PASS"
C:\Documents and Settings\2 guys 1 prank\Desktop\Map Serrver\filterscripts\ppas.pwn(97) : error 017: undefined symbol "PLAYER_LEVEL"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
lol
Reply
#8

You must define this stuff with #DEFINE and with variables,because i don`t know what
you using for what
Reply
#9

is it from wiki?
Reply
#10

Quote:
Originally Posted by whooper
is it from wiki?
ya xD

edit:
thanks luka works 26 errors now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)