SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 17/02/2011, 04:49 PM   #1
Lukasz56
Big Clucker
 
Join Date: Aug 2010
Posts: 100
Reputation: 1
Default Can't fix Warrning

I have warrning
Quote:
(430) : warning 225: unreachable code
Line
Quote:
if(strcmp(cmdtext, "/Vipai", true)==0)

Can any help me ?
Lukasz56 is offline  
Old 17/02/2011, 04:58 PM   #2
Criss_Angel
Huge Clucker
 
Join Date: Jun 2009
Posts: 384
Reputation: 0
Default Re: Can't fix Warrning

Try This:
pawn Code:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
Also, Try using zcmd
Criss_Angel is offline  
Old 17/02/2011, 05:00 PM   #3
xRyder
Huge Clucker
 
xRyder's Avatar
 
Join Date: Jan 2011
Location: Right above you.
Posts: 371
Reputation: 0
Default Re: Can't fix Warrning

Show us your peace of code that you have above the warning line.
xRyder is offline  
Old 17/02/2011, 05:02 PM   #4
Lukasz56
Big Clucker
 
Join Date: Aug 2010
Posts: 100
Reputation: 1
Default Re: Can't fix Warrning

Quote:
Originally Posted by Criss_Angel View Post
Try This:
pawn Code:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
Also, Try using zcmd
Don't work

Peace Of Code

Quote:
if(strcmp(cmdtext, "/Vipai", true)==0)
{
ShowPlayerDialog(playerid,5001,DIALOG_STYLE_MSGBOX ,"Serverio Vipai","Ernis_Vilkaviskis\nBeroza_Deva\nNera\nNera ","Ok","Ok");
return 1;
}
Lukasz56 is offline  
Old 17/02/2011, 05:03 PM   #5
xRyder
Huge Clucker
 
xRyder's Avatar
 
Join Date: Jan 2011
Location: Right above you.
Posts: 371
Reputation: 0
Default Re: Can't fix Warrning

What you have above that command? Show me that, not your command.
xRyder is offline  
Old 17/02/2011, 05:04 PM   #6
Lukasz56
Big Clucker
 
Join Date: Aug 2010
Posts: 100
Reputation: 1
Default Re: Can't fix Warrning

I copied it from another gm
Lukasz56 is offline  
Old 17/02/2011, 05:09 PM   #7
xRyder
Huge Clucker
 
xRyder's Avatar
 
Join Date: Jan 2011
Location: Right above you.
Posts: 371
Reputation: 0
Default Re: Can't fix Warrning

Okay, maybe you don't understand me...
So what pawno is telling you, is that he can't reach that command what you made (/vipai) and there's gotta be something what's blocking pawno's way to compile your code successfully.

Just show us this:

pawn Code:
//what you have here?? show us...
if(strcmp(cmdtext, "/Vipai", true)==0)
{
ShowPlayerDialog(playerid,5001,DIALOG_STYLE_MSGBOX ,"Serverio Vipai","Ernis_Vilkaviskis\nBeroza_Deva\nNera\nNera ","Ok","Ok");
return 1;
}
xRyder is offline  
Old 17/02/2011, 05:17 PM   #8
Lukasz56
Big Clucker
 
Join Date: Aug 2010
Posts: 100
Reputation: 1
Default Re: Can't fix Warrning

It compiles sucesfull but i have that error

Ehh my enlish is bad so i can't underdstand u good
Lukasz56 is offline  
Old 17/02/2011, 05:19 PM   #9
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,421
Reputation: 271
Default Re: Can't fix Warrning

Show the command that is above "if(strcmp(cmdtext, "/Vipai", true)==0)" there will be a return there causing the error.

Please post a full block of code and not just one line.
iggy1 is offline  
Old 17/02/2011, 05:20 PM   #10
Criss_Angel
Huge Clucker
 
Join Date: Jun 2009
Posts: 384
Reputation: 0
Default Re: Can't fix Warrning

You see this?:
pawn Code:
if(strcmp(cmdtext, "/Vipai", true)==0)
The thing above that, show us that.
^
|
|
if(strcmp(cmdtext, "/Vipai", true)==0)
Got it?
Criss_Angel is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
1 Warrning || warning 235: public function lacks forward declaration (symbol "op Pawel_Shark Scripting Help 8 12/12/2011 02:31 PM
Strange Warrning -- Need Fix Fast Guest3598475934857938411 Help Archive 2 26/12/2010 01:46 AM
[ADMIN FILTERSCRIPT CREATEION WARRNING] useing enumations ! Micko9 Help Archive 1 18/03/2010 06:18 PM


All times are GMT. The time now is 04:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.