AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   awp block (https://forums.alliedmods.net/showthread.php?t=135428)

omgitsme 08-16-2010 05:42

awp block
 
1 Attachment(s)
i was following the tutorial on how to add blocks
https://forums.alliedmods.net/showthread.php?t=112757
and i added a deagle without any problems, no errors, and it works. with the awp it's different. the error line
Quote:

new const gszBlockSpriteFire[] = "sprites/blockmaker/bm_block_fire.spr"; //custom
the error
Quote:

Error: Expected token: ";", but found "new" on line 156
can someone do a quick fix on it? it's not that hard of a job i don't think, i just think i missed placed something. i duno :D

Vechta 08-16-2010 06:25

Re: awp block
 
Problem solved..

GXLZPGX 08-16-2010 08:44

Re: awp block
 
Your error isn't on like 156, its on line 153, it just continues to line 156 because you don't have a semicolon after it.

PHP Code:

new const gszBlockModelAwp[] = "models/blockmaker/bm_awp.mdl" 

-->

PHP Code:

new const gszBlockModelAwp[] = "models/blockmaker/bm_awp.mdl"


drekes 08-16-2010 09:06

Re: awp block
 
or you could remove
Code:

#pragma semicolon 1
to avoid more of these errors.


All times are GMT -4. The time now is 21:56.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.