Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Kinda lost me

by blobby · 2007-11-16 · 4 replies · 981 views · 20 downloads

Read the thread (5 posts)

From the first post

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..
rn
rnIt 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
rn
rn/home/groups/amxmodx/tmp3/phpytixJq.sma(26) : error 017: undefined symbol "strtonum
rn
rnSo i looked through my code and found that part as shown here
rn
rn
new ff_s[2]rn	read_argv(1,ff_s,2)rn	new ff = strtonum(ff_s)

rn
rnBut 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
rn
rnAlso 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
rn
rnRegards and thanks for your time
rn
rnblobby

Files

amx_friendlyfire.sma Plugin Source 2 KB 20 dl Download Compile

The thread

All 5 posts from 4 people on Kinda lost me, kept as they were written.

blobby
started this thread
Posts: 421
Threads: 47
Joined: Apr 2007
11-16-2007, 10:21 AM #1

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..rnrnIt 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 errorrnrn/home/groups/amxmodx/tmp3/phpytixJq.sma(26) : error 017: undefined symbol "strtonumrnrnSo i looked through my code and found that part as shown herernrn

rn	new ff_s[2]rn	read_argv(1,ff_s,2)rn	new ff = strtonum(ff_s)rn
rnrnBut 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 :prnrnAlso 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 rnrnRegards and thanks for your timernrnblobby

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
11-16-2007, 11:24 AM #2

because its str_to_num not strtonum ?

blobby
started this thread
Posts: 421
Threads: 47
Joined: Apr 2007
11-17-2007, 10:04 AM #3

OH my god as if i didnt see that i must have missed the underline button when i was typing thanks D-OrnrnRegardsrnrnBlobby

T Tabor
posted here
Posts: 7
Threads: 0
Joined: Feb 2007
04-15-2008, 02:11 PM #4

could someone tell me how to get the commands from the sma please :confused:

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
04-15-2008, 06:53 PM #5

inside the plugin_init() function, you'll find register_clcmd("commandhere", "function_name")nnthe "commandhere" part is the command

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC