PtokaX forum

Archive => Archived 5.1 boards => HOW-TO's => Topic started by: bastya_elvtars on 16 August, 2006, 20:46:02

Title: Auto-determinig Lua version in PtokaX
Post by: bastya_elvtars on 16 August, 2006, 20:46:02
Include this in the beginning of your script if it's 5.1:

Code (lua) Select
assert(package~=nil,"***ERROR: Your PtokaX is compiled with Lua 5.0.2 and this script needs 5.1!")

;D ;D ;D

For 5.0.2, replace ~= with ==