Raised This Month: $ Target: $400
 0% 

Error HELP ME!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:21   Error HELP ME!
Reply With Quote #1

I got 4 error on my plugin what's wrong?
here is the sma
Here is the link http://img25.**************/img25/5593/errorgqt.jpg
Attached Files
File Type: sma Get Plugin or Get Source (weapon.sma - 579 views - 5.9 KB)

Last edited by glorian; 04-10-2009 at 06:29.
glorian is offline
Send a message via MSN to glorian
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-10-2009 , 06:23   Re: Error HELP ME!
Reply With Quote #2

It would be alot easier to post the errors rather than us figure out what is wrong with that code
__________________
Hunter-Digital is offline
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:29   Re: Error HELP ME!
Reply With Quote #3

Can you see what is wrong?
glorian is offline
Send a message via MSN to glorian
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-10-2009 , 06:35   Re: Error HELP ME!
Reply With Quote #4

Yes, quite easy, it just pointed the line:
PHP Code:
public cmdGiveM3id ) {
    
client_cmd(id"slot1; drop")                                        // Strips you'r primary weapon
    
give_itemid"weapon_m3" );                                        // Gives you a m3
    
client_print(id print_chat"You got a m3!")                      // With this there is a message

after give_item(id you placed ; instead of ,

and the first error is the loose indentation... you must align codes properly

It's easy to find errors when you look at the line number ! that was 75 in your case, weapon.sma(75), that's the filename and line number
Attached Files
File Type: sma Get Plugin or Get Source (weapon.sma - 650 views - 5.7 KB)
__________________
Hunter-Digital is offline
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:36   Re: Error HELP ME!
Reply With Quote #5

OH THANKS Hunter-Digital!
glorian is offline
Send a message via MSN to glorian
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:38   Re: Error HELP ME!
Reply With Quote #6

I still got that ERROR
glorian is offline
Send a message via MSN to glorian
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-10-2009 , 06:40   Re: Error HELP ME!
Reply With Quote #7

EDIT: Actually there are alot more... undefined stuff and more loose indentation, see a tutorial about good coding habbits

fixed compile tested working version uploaded
Attached Files
File Type: sma Get Plugin or Get Source (weapon.sma - 703 views - 5.7 KB)
__________________

Last edited by Hunter-Digital; 04-10-2009 at 06:44.
Hunter-Digital is offline
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:42   Re: Error HELP ME!
Reply With Quote #8

What you mean
glorian is offline
Send a message via MSN to glorian
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:43   Re: Error HELP ME!
Reply With Quote #9

Now i understand
glorian is offline
Send a message via MSN to glorian
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-10-2009 , 06:44   Re: Error HELP ME!
Reply With Quote #10

but it come more errors....
glorian is offline
Send a message via MSN to glorian
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 02:25.


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