FIXED: Thanks to EliranPesahov and _Alexander
#1

Hello this warning keeps comin out:

pawn Код:
D:\SA-MP PROJECT\samp03csvr_R2-2_win32\gamemodes\New Version\project.pwn(2145) : warning 225: unreachable code
Hm I am gonna show you the lines:

pawn Код:
if(strcmp("/neon", cmdtext, true, 10) == 0)
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Add Neon to your Vehicle! Neon costs: 200$","1. Red Neon\r\n2. Blue Neon\r\n3. Green Neon\r\n4. Yellow Neon\r\n5. Pink Neon\r\n6. White Neon","OK", "CANCEL");
                return 0;
                if(!strcmp(cmdtext, "/grapple", true))
So after return 0; I didn't put a } because it will give me other 7 errors what should I do :S?
Reply
#2

Код:
if(strcmp("/neon", cmdtext, true, 10) == 0)
{
 return  ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Add Neon to your Vehicle! Neon costs: 200$","1. Red Neon\r\n2. Blue Neon\r\n3. Green Neon\r\n4. Yellow Neon\r\n5. Pink Neon\r\n6. White Neon","OK", "CANCEL");
}
.
.
.
other commands
Reply
#3

BECAUSE you need to first open it!
pawn Код:
if(strcmp("/neon", cmdtext, true, 10) == 0) {
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Add Neon to your Vehicle! Neon costs: 200$","1. Red Neon\r\n2. Blue Neon\r\n3. Green Neon\r\n4. Yellow Neon\r\n5. Pink Neon\r\n6. White Neon","OK", "CANCEL");
    return 1;
}
if(!strcmp(cmdtext, "/grapple", true)) {
    // YOUR other command goes here...
    return 1;
}
Reply
#4

EDIT: THANKS A LOT GUYS! IT WORKED!
Reply
#5

Lines,maybe? -_-
Reply
#6

No problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)