SA-MP Forums Archive
Helppp! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Helppp! (/showthread.php?tid=469462)



Helppp! - DuongNghia - 13.10.2013

C:\Documents and Settings\Admin\Desktop\VN-RP\gamemodes\modernliferp.pwn(35330) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: Helppp! - Konstantinos - 13.10.2013

Use a better title like "warning 225: unreachable code".
Show us lines 35328-35332

That warning is given when you use return and on the next lines there is code.

pawn Код:
// Example:

// some code..
SendClientMessage( playerid, -1, "blabla" );
return 1;
new a = GetPlayerScore( playerid ); // warning 225: unreachable code



Re: Helppp! - doreto - 13.10.2013

code code code code code code code


Re: Helppp! - DuongNghia - 13.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Use a better title like "warning 225: unreachable code".
Show us lines 35328-35332

That warning is given when you use return and on the next lines there is code.

pawn Код:
// Example:

// some code..
SendClientMessage( playerid, -1, "blabla" );
return 1;
new a = GetPlayerScore( playerid ); // warning 225: unreachable code
i'm don't know ?


Re: Helppp! - Konstantinos - 13.10.2013

Me neither. I cannot read your mind and see the code.. and post the exact code to fix your warning..

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Use a better title like "warning 225: unreachable code".
Show us lines 35328-35332

That warning is given when you use return and on the next lines there is code.

pawn Код:
// Example:

// some code..
SendClientMessage( playerid, -1, "blabla" );
return 1;
new a = GetPlayerScore( playerid ); // warning 225: unreachable code



Re: Helppp! - DuongNghia - 13.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Me neither. I cannot read your mind and see the code.. and post the exact code to fix your warning..
You just write the code like this. and give me that
C:\Documents and Settings\Admin\Desktop\VN-RP\gamemodes\modernliferp.pwn(35330) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: Helppp! - Konstantinos - 13.10.2013

Did you read what I said or you paste the code immediately? That WAS AN EXAMPLE of what the warning is..

As long as you don't show the lines, we cannot help you.


Re: Helppp! - DuongNghia - 13.10.2013

C:\Documents and Settings\Admin\Desktop\VN-RP\gamemodes\modernliferp.pwn(5590) : error 017: undefined symbol "LoadDrugs"
C:\Documents and Settings\Admin\Desktop\VN-RP\gamemodes\modernliferp.pwn(35320) : warning 209: function "SaveDrugs" should return a value
C:\Documents and Settings\Admin\Desktop\VN-RP\gamemodes\modernliferp.pwn(35322) : error 021: symbol already defined: "SaveDrugs"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Helppp! - BlueBaron - 13.10.2013

When you open Pawn, you have little beautiful numbers on the left. Many numbers if you have a big script. Go down, down until in those little numbers on the left you see 35328. Start copying the next lines starting from 35328 until you reach 35332.