*** This topic title sucks, "help me" is not descriptive.
#1

I need some help with this line :

pawn Код:
ShowPlayerDialog(playerid, 35, DIALOG_STYLE_LIST, "Ranks avaible on the server:", "Rank Name for 1000 score\nRank Name for 700 score\nRank Name for 500 score\nRank Name for 200 score\nRank Name for 100 score\Rank name for 50 score", "okay", "Cancel");
IDK where the error is :

Код:
D:\World Trucking International\Server\filterscripts\Stats.pwn(105) : error 027: invalid character constant
D:\World Trucking International\Server\filterscripts\Stats.pwn(105) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reping +

Regards private
Reply
#2

Try ~n~ instead of \n

EDIT: also take a look:
Код:
\Rank name for 50 score
You forgot 'n' after the slash
Reply
#3

show us the cmd lines or the lines closed to it
Reply
#4

pawn Код:
ShowPlayerDialog(playerid, 35, DIALOG_STYLE_LIST, "Ranks avaible on the server:", "Rank Name for 1000 score\nRank Name for 700 score\nRank Name for 500 score\nRank Name for 200 score\nRank Name for 100 score\nRank name for 50 score", "okay", "Cancel");
Reply
#5

Quote:
Originally Posted by Rony
Посмотреть сообщение
Try This
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Ranks avaible on the server:", "Rank Name for 1000 score \nRank Name for 700 score! \nRank Name for 500 score \nRank Name for 200 score \nRank Name for 100 score \nRank name for 50 score", "OK", "Cancel");
He forgot the n after \ .. what i gave him works.. you changed the id and put that n.. no.. just no
Reply
#6

HarryPoter just posted to get ammount of posts lol , Adytza thx , it helped me
I rep+ you
and what about this warning ?

Код:
D:\World Trucking International\Server\filterscripts\Stats.pwn(101) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Here pawn code is

pawn Код:
{
        GetPlayerScore(playerid >= 1000);
        SendClientMessage(playerid, red,"Your rank is RANK NAME HERE");
        return 1;
    }
    return 0;//line 101
}
Reply
#7

Delete return 0; ..
or put return 1; ..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)