Raised This Month: $ Target: $400
 0% 

awp block


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 08-16-2010 , 05:42   awp block
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (blockmaker_v4.01.sma - 222 views - 164.7 KB)
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-16-2010 , 06:25   Re: awp block
Reply With Quote #2

Problem solved..
Vechta is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-16-2010 , 08:44   Re: awp block
Reply With Quote #3

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"
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-16-2010 , 09:06   Re: awp block
Reply With Quote #4

or you could remove
Code:
#pragma semicolon 1
to avoid more of these errors.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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