error 225
#1

Код:
	if(strcmp(cmd, "/posty", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -159.8882,1.5781,268.7883))
        ShowPlayerDialog(playerid,434,DIALOG_STYLE_LIST,"Posty Menu","Small Route/n Medium Route/n Huge Route","Okay","Cancel"); // you can change the dialog style so
    }
    else
	{
	SendClientMessage(playerid, COLOR_ORANGE, "[ERROR]: You are not at the posty location to do this!");
	}
	return 0;
Код:
C:\Users\Josh\Desktop\Creekside\csrp.pwn(23521) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           8884 bytes
Code size:          2251972 bytes
Data size:          3758896 bytes
Stack/heap size:      16384 bytes; estimated max. usage=6759 cells (27036 bytes)
Total requirements: 6036136 bytes

1 Warning.
Can someone help with the warning, thanks.
Reply
#2

Which is line 23521
Reply
#3

pawn Код:
if(strcmp(cmdtext, "/posty", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, -159.8882,1.5781,268.7883))
    {
        ShowPlayerDialog(playerid,434,DIALOG_STYLE_LIST,"Posty Menu","Small Route/n Medium Route/n Huge Route","Okay","Cancel"); // you can change the dialog style so
    }
    else
    {
        SendClientMessage(playerid, COLOR_ORANGE, "[ERROR]: You are not at the posty location to do this!");
    }
    return 1;
}
Reply
#4

Try this:
pawn Код:
if(strcmp(cmd, "/posty", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -159.8882,1.5781,268.7883))
{
ShowPlayerDialog(playerid,434,DIALOG_STYLE_LIST,"Posty Menu","Small Route/n Medium Route/n Huge Route","Okay","Cancel"); // you can change the dialog style so
}
}
else
    {
    SendClientMessage(playerid, COLOR_ORANGE, "[ERROR]: You are not at the posty location to do this!");
    }
    return 0;
Reply
#5

To make a new line you need '\n', not '/n'. Just saying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)