#1

Quote:

C:\Users\r\Desktop\New folder\gamemodes\BCRP.pwn(166 : error 027: invalid character constant
C:\Users\\Desktop\New folder\gamemodes\BCRP.pwn(166 : error 029: invalid expression, assumed zero
C:\Users\\Desktop\New folder\gamemodes\BCRP.pwn(166 : warning 215: expression has no effect
C:\Users\\Desktop\New folder\gamemodes\BCRP.pwn(166 : warning 215: expression has no effect
C:\Users\\Desktop\New folder\gamemodes\BCRP.pwn(166 : error 027: invalid character constant
C:\Users\\Desktop\New folder\gamemodes\BCRP.pwn(166 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

For:

CMDolice(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_POLICE, DIALOG_STYLE_TABLIST_HEADERS, "New Police Skins","Name\tID\n\Desert Sheriff\t311\n\Country Sheriff\t310\n\San Fierro Police Officer\t307","Select", "Cancel");LINE: 1668
return 1;
}
Reply
#2

"Name\tID\n\Desert Sheriff\t311\n\Country Sheriff\t310\n\San Fierro Police Officer\t307"

All those are invalid. Replace "\n\" with "\n".
Reply
#3

Код:
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : error 001: expected token: ";", but found ")"
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\New folder\gamemodes\BCRP.pwn(1668) : fatal error 107: too many error messages on one line
Reply
#4

Err, that is incorrect:
pawn Код:
#define DIALOG_POLICE
Replace with:
pawn Код:
#define DIALOG_POLICE 193
Reply
#5

Now, how would I place this on OnDialogReponse?
Reply
#6

In case that dialogid (193) is used, change it to something else so it won't conflict.
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch (
dialogid)
    {
        case 
DIALOG_POLICE:
        {
            if (
response)
            {
                
// code..
            
}
        }
        default: return 
0;
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)