AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Begining help :P (https://forums.alliedmods.net/showthread.php?t=25505)

Waylay 03-15-2006 09:22

Begining help :P
 
Need some help here..im a very big newbie at this stuffs so i have to ask:

/home/users/amxmodx/tmp3/phpX7F4tR.sma(6) : error 001: expected token: ",", but found ";"
/home/users/amxmodx/tmp3/phpX7F4tR.sma(6) : error 036: empty statement
/home/users/amxmodx/tmp3/phpX7F4tR.sma(6) : error 029: invalid expression, assumed zero
/home/users/amxmodx/tmp3/phpX7F4tR.sma(6) : fatal error 107: too many error messages on one line

Waylay 03-15-2006 09:27

From amxmodx complier:
Code:
/home/users/amxmodx/tmp3/phpvEzUJ8.sma(6) : error 001: expected token: ",", but found "-string-" /home/users/amxmodx/tmp3/phpvEzUJ8.sma(6) : warning 215: expression has no effect /home/users/amxmodx/tmp3/phpvEzUJ8.sma(6) : error 001: expected token: ";", but found ")" /home/users/amxmodx/tmp3/phpvEzUJ8.sma(6) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/phpvEzUJ8.sma(6) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/phpvEzUJ8.amx (compile failed).

v3x 03-15-2006 09:30

Post the code ...

Waylay 03-15-2006 09:35

imbarissing message and im sure you can se where i got the code..


Code:

#include <amxmodx>
#include <amxmisc>


public myfunction(id,level,cid) {
if (!cmd_access(id,level,cid,1",") {
 return PLUGIN_HANDLED
}

client_print(0,print_center,"I'm Searching Skillz Admins !")

return PLUGIN_HANDLED
}



public plugin_init() {
register_plugin("message","0.1","waylay")
register_clcmd("amx_message","myfunction",ADMIN_VOTE" : prints I'm Searching
Skillz Admins !to everyone")

}

(For my skill server on tfc)

v3x 03-15-2006 09:50

Code:
#include <amxmodx> #include <amxmisc> public myfunction(id,level,cid) {   if (!cmd_access(id,level,cid,1)) { // took out "," and added an )     return PLUGIN_HANDLED   }   client_print(0,print_center,"I'm Searching Skillz Admins !")   return PLUGIN_HANDLED } public plugin_init() {   register_plugin("message","0.1","waylay")   register_clcmd("amx_message","myfunction",ADMIN_VOTE ," : prints I'm Searching Skillz Admins !to everyone")   // ^ added a comma after ADMIN_VOTE }

Waylay 03-15-2006 09:53

Code:
took out "," and added an )

Infact i had that first..
But it worked to complie..ty


All times are GMT -4. The time now is 20:27.

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