first time plz help
1 Attachment(s)
ok im trying to write a pistols only mod, similar to knifes only, it is mostly writen from scratch but i borrowed bits-n-peices from a knifes only mod,
i have bunches of errors that i have no idea how to fix Welcome to the AMX Mod X 1.70-300 Compiler. Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team /home/users/amxmodx/tmp3/phpExvPVA.sma(2) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/phpExvPVA.sma(2 -- 4) : warning 215: expression has no effect /home/users/amxmodx/tmp3/phpExvPVA.sma(4) : error 010: invalid function or declaration /home/users/amxmodx/tmp3/phpExvPVA.sma(8 -- 9) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/phpExvPVA.sma(10) : error 010: invalid function or declaration /home/users/amxmodx/tmp3/phpExvPVA.sma(14) : error 017: undefined symbol "read_argv" /home/users/amxmodx/tmp3/phpExvPVA.sma(15) : error 017: undefined symbol "set_hudmessage" /home/users/amxmodx/tmp3/phpExvPVA.sma(16) : error 017: undefined symbol "equal" /home/users/amxmodx/tmp3/phpExvPVA.sma(17) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(17 -- 18) : warning 215: expression has no effect /home/users/amxmodx/tmp3/phpExvPVA.sma(18) : error 017: undefined symbol "client_cmd" /home/users/amxmodx/tmp3/phpExvPVA.sma(19) : error 017: undefined symbol "console_print" /home/users/amxmodx/tmp3/phpExvPVA.sma(20) : error 017: undefined symbol "show_hudmessage" /home/users/amxmodx/tmp3/phpExvPVA.sma(21) : error 017: undefined symbol "equal" /home/users/amxmodx/tmp3/phpExvPVA.sma(22) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(22 -- 23) : warning 215: expression has no effect /home/users/amxmodx/tmp3/phpExvPVA.sma(23) : error 017: undefined symbol "console_print" /home/users/amxmodx/tmp3/phpExvPVA.sma(24) : error 017: undefined symbol "show_hudmessage" /home/users/amxmodx/tmp3/phpExvPVA.sma(26) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(27) : error 017: undefined symbol "console_print" /home/users/amxmodx/tmp3/phpExvPVA.sma(29) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(30) : error 017: undefined symbol "console_print" /home/users/amxmodx/tmp3/phpExvPVA.sma(33) : warning 217: loose indentation /home/users/amxmodx/tmp3/phpExvPVA.sma(33) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/phpExvPVA.sma(33) : error 017: undefined symbol "usp" /home/users/amxmodx/tmp3/phpExvPVA.sma(34) : warning 217: loose indentation /home/users/amxmodx/tmp3/phpExvPVA.sma(34) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(37) : error 017: undefined symbol "usponly" /home/users/amxmodx/tmp3/phpExvPVA.sma(38) : error 003: declaration of a local variable must appear in a compound block /home/users/amxmodx/tmp3/phpExvPVA.sma(38) : warning 217: loose indentation /home/users/amxmodx/tmp3/phpExvPVA.sma(38) : error 017: undefined symbol "clip" /home/users/amxmodx/tmp3/phpExvPVA.sma(38) : error 017: undefined symbol "ammo" Compilation aborted. 26 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/phpExvPVA.amx (compile failed). those are my errors plz help me also, plz tell me how to fix them, dont just do for me, i need to learn thnx bunches sry bout having to dl it, im to retarded to figure out how to post it[/code] |
Try fixing your errors one at a time, starting with the first one listed. Often, subsequent errors are a result of previous errors.
It looks like most of your errors are stemming from the same thing. Every function must be in the form of: Code:
|
thnx u, wich one to change tho, i have no idea, or wat to change them to
|
post your code
|
just dl the sma file , like i said im to retarded to post it
|
he also needs
#include <amxmodx> |
thnx but that didnt get rid of ne errors :cry:
|
This is his code for people like c0rdawg that don't seem to know how to download attached files.
Get ready to feel your eyes burn... Code:
Now, in answer to your most recent question... Your first error indicated a problem with line 2. Look at your line 2. Compare this function: Code:
Code:
|
hehe i'm sorry, I didn't notice that he posted the sma... sorry :oops:
Yeah theres alot of errors in this code don't forget to include amxmodx and amxmisc also make sure you close all your functions... cmdusp_only isn't closed also the variabled usponly is never defined... theres probably some more errors but thats what i noticed quickly |
thnx u but i still cant get rid of ne of the errors, her is the updated code, i might have fucked it up more but idk...
Code:
#include <amxmodx>yay i figured it out |
| All times are GMT -4. The time now is 20:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.