help guys
#1

PHP Code:
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(68) : error 001expected token"}"but found "-identifier-"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(72) : error 010invalid function or declaration
C
:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(317) : error 017undefined symbol "DIALOG_LOGIN"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(321) : error 017undefined symbol "DIALOG_REGISTRAZIONE"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(500) : error 017undefined symbol "DIALOG_REGISTRAZIONE"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(505) : error 017undefined symbol "DIALOG_REGISTRAZIONE"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(517) : error 017undefined symbol "DIALOG_SUCCESSO_1"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(520) : error 017undefined symbol "DIALOG_LOGIN"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(529) : error 017undefined symbol "DIALOG_SUCCESSO_2"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(533) : error 017undefined symbol "DIALOG_LOGIN"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
10 Errors

PHP Code:
enum
{
    
DIALOG_UNUSED,
    
DIALOG_ARMI// 1
    
DIALOG_DROGA // 2
    
DIALOG_REGISTRAZIONE1
    DIALOG_LOGIN
2
    DIALOG_SUCCESSO_1
3
    DIALOG_SUCCESSO_2 4
}; 
Reply
#2

Enumerators cannot be used like that. You don't even need enums to define dialogs.

Define them like this instead.

PHP Code:
#define DIALOG_UNUSED 0
#define DIALOG_ARMI  1
#define DIALOG_DROGA  2 
#define DIALOG_REGISTRAZIONE 3
#define DIALOG_LOGIN 4
#define DIALOG_SUCCESSO_1 5
#define DIALOG_SUCCESSO_2 6 
Note that every dialog should have unique IDs. If you define 2 dialogs with the same ID, it will be mixed up in the script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)