General > Developers Corner

Ulx completes

<< < (6/8) > >>

skillz:

--- Code: ---function ulx.equipment( calling_ply, target_plys, equipment )
--- End code ---
Was originally in upper case, i had to remove the upper case. However i got the same error.
I then had to change:

--- Code: ---local equipment = ulx.command( CATEGORY_NAME, "ulx give equipment", ulx.equipment )
--- End code ---
specifically "ulx give equipment" into lower case otherwise i got the same error. Sorry for being unspecific, when i read back on it it was quite vague.

Megiddo:
You're saying you had to change the case of the function? Lua is a case-sensitive language, this doesn't have anything to do with ULX. :P

skillz:
*Epic facepalm*, i thought you were talking about case sensitivity on the function not the other bit hehe, well lesson learnt. Do you have steam? If you would like to add me, http://steamcommunity.com/id/Skillz1/ I won't be quizing you with questions, i keep steam for friends not contacts. :)

JamminR:
Pretty sure it won't fix all your issues, but;
1) Always use lower case commands. (Strongly recommend 'getequipment', not 'GetEquipment'. Same for function names, etc. Lua is case sensitive, just easier to keep all of one type of thing the same. ULX does many checks already where it forces stuff to.lower.
2) Do you have CATEGORY_NAME defined? (This tells ULX where to put it in a menu, and XGUI what tab to put it under)

skillz:
I don't see that case sensitivity on the functions would be a problem, i normally just copy and paste the names so i never make mistakes when calling them. However i will keep an eye on any problems that arise. Yes, i've got the the name defined at the top of the page. Thanks for the suggestions anywho :).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version