AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error HELP ME! (https://forums.alliedmods.net/showthread.php?t=89753)

glorian 04-10-2009 06:21

Error HELP ME!
 
1 Attachment(s)
I got 4 error on my plugin what's wrong?
here is the sma
Here is the link http://img25.**************/img25/5593/errorgqt.jpg

Hunter-Digital 04-10-2009 06:23

Re: Error HELP ME!
 
It would be alot easier to post the errors rather than us figure out what is wrong with that code

glorian 04-10-2009 06:29

Re: Error HELP ME!
 
Can you see what is wrong?

Hunter-Digital 04-10-2009 06:35

Re: Error HELP ME!
 
1 Attachment(s)
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

glorian 04-10-2009 06:36

Re: Error HELP ME!
 
OH THANKS Hunter-Digital!

glorian 04-10-2009 06:38

Re: Error HELP ME!
 
I still got that ERROR

Hunter-Digital 04-10-2009 06:40

Re: Error HELP ME!
 
1 Attachment(s)
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

glorian 04-10-2009 06:42

Re: Error HELP ME!
 
What you mean

glorian 04-10-2009 06:43

Re: Error HELP ME!
 
Now i understand

glorian 04-10-2009 06:44

Re: Error HELP ME!
 
but it come more errors....


All times are GMT -4. The time now is 02:25.

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