SA-MP Forums Archive
Textdraw - 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: Textdraw (/showthread.php?tid=401676)



Textdraw - DerickClark - 23.12.2012

how to do a Textdraw https://sampwiki.blast.hk/wiki/Textdraw
warning 225: unreachable code
unreachable code
loose indentation
warning 203: symbol is never used: "gMyPlayerText"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.


Re: Textdraw - DaRk_RaiN - 23.12.2012

Unreachable code is for an extra bracket (symbol is never used: "gMyPlayerText")is because you never showed the Textdraw (loose indentation)is nothing you should be worried about it comes when you don't match the lines kinda.


Re: Textdraw - MP2 - 23.12.2012

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Unreachable code is for an extra bracket (symbol is never used: "gMyPlayerText")is because you never showed the Textdraw (loose indentation)is nothing you should be worried about it comes when you don't match the lines kinda.
No.

Unreachable code is exactly what it says - the code can't be reached because it's being stopped (by a return) before hand. For example:

pawn Код:
SomeFunction(params)
{
    // code
    return 1;

    // more code - this is unreachable
}