Raised This Month: $12 Target: $400
 3% 

compilation problem (amx_ejl_spacedudehook.sma)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hangman5386
Member
Join Date: Mar 2004
Old 03-28-2004 , 10:03   compilation problem (amx_ejl_spacedudehook.sma)
Reply With Quote #1

Hi,
I want to convert our clans funserver from old AMX (v0.9.7) to AMXX (v0.16 atm of writing ). However, most plugins compiled (no chance to test those yet) without problems but one plugin is making some trouble.
At first I converted some things to AMXX (hardcoded path addons/amx/somefile.ini etc.) but there's another error:
Quote:
amx_ejl_spacedudehook.sma(682) : error 037: invalid string (possibly non-terminated string)
amx_ejl_spacedudehook.sma(683) : warning 217: loose indentation
amx_ejl_spacedudehook.sma(683) : error 001: expected token: "(", but found "-identifier-"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "say"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "we"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "want"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "to"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "use"
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "q"
amx_ejl_spacedudehook.sma(683) : error 029: invalid expression, assumed zero
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "Do"
amx_ejl_spacedudehook.sma(683) : error 029: invalid expression, assumed zero
amx_ejl_spacedudehook.sma(683) : error 017: undefined symbol "n"
amx_ejl_spacedudehook.sma(683) : error 029: invalid expression, assumed zero
amx_ejl_spacedudehook.sma(684) : error 017: undefined symbol "bind"
amx_ejl_spacedudehook.sma(684) : error 017: undefined symbol "q"
amx_ejl_spacedudehook.sma(684) : error 029: invalid expression, assumed zero
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "Enter"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "that"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "and"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "now"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "whenever"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "you"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "press"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "the"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "q"
amx_ejl_spacedudehook.sma(685) : error 017: undefined symbol "key"

Compilation aborted.
26 Errors.
This is the code from the .sma file (lines 682-685):
Code:
        temp = "Bind a key to +hook. Go to your console, choose a key^n\^M                         for hooking. Lets say we want to use q. Do this:^n^n\^M                         bind q +hook^n^n\^M                         Enter that and now whenever you press the q key, it launches^n\^M                         your hook. Make sure to hold the key down as long as you^n"^M
This error was there before I modified the original version of the file, too!
Unfortunately I don't know anything about Small-scripting and so I hope anyone could help me with this problem.

TIA!
Hangman5386 is offline
BAILOPAN
Join Date: Jan 2004
Old 03-28-2004 , 11:11  
Reply With Quote #2

temp = "Bind a key to +hook. Go to your console, choose a key^n\^M
for hooking. Lets say we want to use q. Do this:^n^n\^M
bind q +hook^n^n\^M
Enter that and now whenever you press the q key, it launches^n\^M
your hook. Make sure to hold the key down as long as you^n"^M

If you're doing this with linux, get rid of ^M with these commands:
vi file.sma (this will open vi editor)
[You can make ^M by holding CTRL+V, then M]
:%s/^M//g
:wq

The error is in
temp " \
thi sis some text\
more text\
last text"

it should be:
temp "this is some text more text last text"
all on one line
__________________
egg
BAILOPAN is offline
Hangman5386
Member
Join Date: Mar 2004
Old 03-28-2004 , 11:26  
Reply With Quote #3

Thanks alot! Compiled correctly now.

Edit: Previous attachments deleted -> plugin thread
Hangman5386 is offline
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 04:54.


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