Strange Menu Error
Hey i just copyed the menu from the AMX Mod X doc and i get this errors from this line when i try to compile:
Code:
I get this errors: "undefined symbol "key"" "expected token ";" but found ")"" "invalid expression, assumed zero" "too many error messages on one line" and this warning: "expresson has no effect" WTF? Cant post the script... Its a secret script :D Im making a new huge plugin and dont want idea stealers :lol: Anyway thats the only error line... Avalanche??? hehe |
"undefined symbol "key""
means you didnt declare a variable named 'key' The rest of the erros are probably because of the first one.. If you don't want to post the whole script, that is understandable, but at least post more than one line of code.. like, post maybe the function that code is in? If there is text in the menu you dont want others to see, then just change the text to something else.. |
Top Secret!! :lol:
Code:
|
Code:
Should Be: Code:
The variable key should be keys... |
Thanks! Ill credit you...
If i ever complete the plugin like i think i never will make :? ------------------------------------- EDIT: My menu didnt show up... How do i make it show up when after a player joined the server??? |
Ok i did so you can type "/changeclass" and the menu show up, but how to i make it come up when a player joins the server too?
|
Well, problem is that client_connect() is called before they are actually put in the server.. And even then, you have to wait until they pick a team and model... Once that happens, they are in-game and can now see menus and stuff..
So, you could delay showing the menu until the event ResetHUD is called for each connecting user... something like this: Code:
|
Thanks, but i get "undefined symbol" error from this line:
Code:
And now that i changed this stuffs, i dont got "say /changeclass".. How do i add so people can type "/changeclass" too? |
Ooops.. my bad.. it should be:
Code:
And your changeclass thingy would be: Code:
|
Didnt work either... Check your PM's xeroblood.
|
| All times are GMT -4. The time now is 14:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.