[HELP] I have error messages i cant fix.. :( - +Rep
#1

Hello.

Pawno Code.
Quote:

ShowMainMenuDialog(playerid, frame)
{
new titlestring[64];
new string[256];

switch(frame)
{
case 1;
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{228B22}Welcome to Priority Roleplay, %s.\n\nThis Account Is Registered Please Fill In Your Password To Login In.{228B22}", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PA SSWORD,titlestring,string,"Login","Exit";) <-- Error Line!
}
case 2;
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "Register - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{1E90FF}Welcome to Priority Roleplay, %s.\n\nYou Have Not Yet Registered Please Do And Fill Out The Password.{1E90FF}", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_P ASSWORD,titlestring,string,"Register","Exit";)
};
case 3;
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{1E90FF}Invalid Password!\n\nWelcome to Priority Roleplay, %s.\n\nThis Account Is Registered Please Fill In Your Password To Login In{1E90FF}", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PA SSWORD,titlestring,string,"Login","Exit";)
}
}
}

Error Codes:

Код:
(9823) : error 001: expected token: "-string end-", but found "-identifier-"
(9823) : error 029: invalid expression, assumed zero
(9823) : error 029: invalid expression, assumed zero
(9823) : fatal error 107: too many error messages on one line
Reply
#2

You do have ); at the end of it after "Exit" right?
Reply
#3

Quote:
Originally Posted by The DeLuca
Посмотреть сообщение
You do have ); at the end of it after "Exit" right?
Ofcourse i do :P
Reply
#4

Hmm let's try this :

pawn Код:
new titlestring[64], string[256];
switch(frame)
{
case 1:
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring)), "Login - %s", GetPlayerNameEx(playerid);
format(string, sizeof(string)), "{228B22}Welcome to Priority Roleplay, %s.\n\nThis Account Is Registered Please Fill In Your Password To Login In.{228B22}", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
}
Reply
#5

I still get these errors..

(9823) : error 001: expected token: "-string end-", but found "-identifier-"
(9823) : error 029: invalid expression, assumed zero
(9823) : error 029: invalid expression, assumed zero
(9823) : fatal error 107: too many error messages on one line
Reply
#6

Omg,look you put here
Quote:

ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PA SSWORD,titlestring,string,"Login","Exit" <-- Error Line!

It must be like this :
Quote:

ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PA SSWORD,titlestring,string,"Login","Exit"); <-- Error Line!

First ) then ;
Reply
#7

erm.. now i have 19 errors..
Reply
#8

Every line in you have ; ) this replace with ); or post that errors and lines in which called errors.
Reply
#9

There are some syntax errors, check your code...

case 3; -> Its ":" not ";"

ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PA SSWORD,titlestring,string,"Login","Exit"; )

ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_P ASSWORD,titlestring,string,"Register","Exit"; )

When you code something, try to pay attention to what you are writing
Reply
#10

Thank you very much!

Fixed.

+1 Rep for all that have made a reply.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)