What's wrong with this?
#1

Hey guys, i'm getting some errors and Everything seems fine.
pawn Code:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""BLUE"Login",""BLUE"Enter your Password To Login.","Login","Cancle");
    }
and the errors
pawn Code:
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : warning 215: expression has no effect
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : warning 215: expression has no effect
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : error 001: expected token: ";", but found "-string-"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(160) : fatal error 107: too many error messages on one line

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


4 Errors.
What can cause the problem?
Reply
#2

Try:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""#BLUE"Login",""#BLUE"Enter your Password To Login.","Login","Cancle");
Reply
#3

what's wrong with you?
Nope not working
Reply
#4

Show how is defined your BLUE?
Reply
#5

Remove all the colour embedding parts and recompile. If the errors are gone then you know you did something wrong with the embedding. If they are not gone, then there is a different problem (which I can't seem to find).

Also, Are your colours defined like this {FFFFFF} for embedding?
Reply
#6

the color must be embedding
exemple:you are using Blue you must defined #define BLUE "{FFFFFF}"
FFFF its white change it to blue
Reply
#7

here's how i did it
#define BLUE 0x0000FFFF
#define GREEN 0x008000FF
#define PURPLE 0x800080AA
#define GREY 0x696969FF
Reply
#8

You need to define it as a string, with the curly brackets.

#define E_BLUE "{0000FF}"
Reply
#9

ok i changed them
pawn Code:
#define PW_COLOR {FF0000}
#define PW_WHITE {FFFFFF}
code
pawn Code:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, gPlayerName[playerid], MAX_PLAYER_NAME);
    if (fexist(getINI(playerid)))
    {
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "Enter your {FF0000}Password {FFFFFF}To Login", "Login", "Cancle");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register", "Type your {FF0000}password{FFFFFF} below to register a new account", "Register","Cancle");
    }
errors
pawn Code:
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(180) : warning 217: loose indentation
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(180) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(197) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(197) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(197) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(199) : error 017: undefined symbol "killerid"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(202) : error 017: undefined symbol "killerid"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(206) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(206) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(206) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(211) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(211) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(211) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(215) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(215) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(215) : error 004: function "OnPlayerText" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(220) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(220) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(220) : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(222) : error 017: undefined symbol "cmdtext"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(230) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(230) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(230) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(235) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(235) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(235) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(240) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(240) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(240) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(245) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(245) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(245) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(250) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(250) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(250) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(255) : warning 225: unreachable code
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(255) : error 029: invalid expression, assumed zero

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


26 Errors.
Reply
#10

Anyone i need to fix this Now :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)