PDA

View Full Version : Kinda lost me


blobby
11-16-2007, 10:21 AM
Hey guys and girls i was just tring to knock a quick friendlyfire plugin up for my clan so they can turn it on and off as they please all was well up to there..

It compiled the first time no problems but the second time after i had added the say /ff commands nothingg it wont compile but on the compiler it says the following error

/home/groups/amxmodx/tmp3/phpytixJq.sma(26) : error 017: undefined symbol "strtonum

So i looked through my code and found that part as shown here


new ff_s[2]
read_argv(1,ff_s,2)
new ff = strtonum(ff_s)


But the code inspector on amx studio says there is nothing wrong with that piece of code so any ways i will attach the plugin sma file below and if one of you starts sould have a look at this and tell me how to fix the error :p

Also my brother has touched my pc i think and on all my plugins if i put my plugin_init at the top of my page and then save it, it puts it at the bottom like old style code any ideas on that one 2

Regards and thanks for your time

blobby

diamond-optic
11-16-2007, 11:24 AM
because its str_to_num not strtonum ?

blobby
11-17-2007, 10:04 AM
OH my god as if i didnt see that i must have missed the underline button when i was typing thanks D-O

Regards

Blobby

Tabor
04-15-2008, 03:11 PM
could someone tell me how to get the commands from the sma please :confused:

Wilson [29th ID]
04-15-2008, 07:53 PM
inside the plugin_init() function, you'll find register_clcmd("commandhere", "function_name")

the "commandhere" part is the command