Hi
function ach1()
local players = getElementsByType ( "player" ) -- get a table of all the players in the server
for k,v in ipairs(players) do
local serial = getPlayerSerial(v)
local yx = executeSQLSelect ( "Mysqltable", "yx","serial = '" .. serial .. "'")
if yx == 1 then
outputChatBox ( "1", getRootElement(), 255, 0, 0, true )
elseif yx == 0 then
outputChatBox ( "0", getRootElement(), 255, 0, 0, true )
else
local pn = getPlayerName(v)
outputChatBox ( "#ffff00**"..pn.."#ffff00 else", getRootElement(), 255, 0, 0, true )
triggerClientEvent ( "onGreeting", getRootElement(), "Hello World!" )
end
end
end
its rude but how to get it work like
yx is sql value and how to check it ? like if xy == 1 then blabla but it isnt working atM
sorry for terrible english -.- need sleep