SA-MP Forums Archive
Roadblock - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Roadblock (/showthread.php?tid=82165)



Roadblock - Zack9764 - 16.06.2009

I'm trying to make a roadblock command and I have everything scripted in except the forward or define or new stuff.. I've never really gotten how to use new _____, #define _______, and forward ______.

Here's my error:

Код:
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29569) : warning 225: unreachable code
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29569) : warning 217: loose indentation
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29572) : error 017: undefined symbol "roadblocktimer"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29576) : error 017: undefined symbol "pRoadblock"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29580) : error 017: undefined symbol "roadblocktimer"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29580) : warning 215: expression has no effect
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29614) : error 017: undefined symbol "pRoadblock"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29619) : error 017: undefined symbol "RemoveRoadblock"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29630) : error 017: undefined symbol "pRoadblock"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29632) : error 017: undefined symbol "RemoveRoadblock"
Can someone tell me how to use forward, new, and define or how to fix this please. Thanks.


Re: Roadblock - GTA_Rules - 16.06.2009

On top:

new pRoadblock;
forward roadblocktimer()


Re: Roadblock - Zack9764 - 16.06.2009

Код:
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29571) : warning 225: unreachable code
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29571) : warning 217: loose indentation
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29574) : error 076: syntax error in the expression, or invalid function call
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29578) : warning 213: tag mismatch
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29582) : error 076: syntax error in the expression, or invalid function call
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29582) : warning 215: expression has no effect
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29616) : warning 213: tag mismatch
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29621) : error 017: undefined symbol "RemoveRoadblock"
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29632) : warning 213: tag mismatch
C:\Users\zach\Desktop\samp02Xserver.win32\gamemodes\stagethreerp.pwn(29634) : error 017: undefined symbol "RemoveRoadblock"