Roadblock
#1

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.
Reply
#2

On top:

new pRoadblock;
forward roadblocktimer()
Reply
#3

Код:
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"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)