SA-MP Forums Archive
DLNirzorMWB.pwn(984) : warning 225: unreachable code - 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: DLNirzorMWB.pwn(984) : warning 225: unreachable code (/showthread.php?tid=585515)



DLNirzorMWB.pwn(984) : warning 225: unreachable code - NviDa - 14.08.2015

I'm getting this error ,when I try to compile Nirzor's gm script.
http://pastebin.com/T0u1ZMce


Re: DLNirzorMWB.pwn(984) : warning 225: unreachable code - NviDa - 14.08.2015

up,...


Re: DLNirzorMWB.pwn(984) : warning 225: unreachable code - Sawalha - 14.08.2015

just show the error line, not all the gm


Re: DLNirzorMWB.pwn(984) : warning 225: unreachable code - HarrisonC - 14.08.2015

Starting from line 975

Код:
    //Fuel System
    td_fuel[playerid] = TextDrawCreate(45,324,"Fuel: 100"); //create the textdraw at position
    TextDrawBackgroundColor(td_fuel[playerid],COLOR_GREEN); //setting an nice backgroundcolor
    TextDrawFont(td_fuel[playerid],3); //font type of textdraw
    TextDrawLetterSize(td_fuel[playerid],0.699999,1.700000); //size...
    TextDrawColor(td_fuel[playerid],0x000000ff); //color
    TextDrawSetShadow(td_fuel[playerid],3); //dropping the shadow

    return 1;           /// HERES YOUR PROBLEM - any code past this point will be ignored until you remove this return

    //Digital Clock
    IsPlayerSpawned[playerid] = 1;