Jump to content

[HELP] Whats Wrong ??


Recommended Posts

Posted

Hello ,

Why i just got nill text , but i can save it on mysql .. i think the problem is on get this text

Client

  
local motd = getElementData(source, "account:motd") or "" 
  
addEvent("motdAjah", true) 
addEventHandler("motdAjah", root, 
function () 
local screenWidth, screenHeight = guiGetScreenSize() 
  
  
    triggerEvent("noticeMP", root) 
    as = guiCreateStaticImage (screenWidth/4.5,screenHeight/1.2,600,70,"img/box.png", false) 
    InfoIcon = guiCreateStaticImage ( 15 , 15 , 40, 40 ,"img/icon/motdi.png", false , as) 
    Notice1 = guiCreateLabel( 70, 20, 600, 60, motd, false, as ) 
    guiSetFont(Notice1, text12) 
    guiLabelSetColor(Notice1,221,137,39) 
    setTimer ( function() 
        destroyElement(as) 
    end, 10000, 1 ) 
end 
) 
  

Server

  
triggerClientEvent("motdAjah", source) 
  

Posted

try explain your problem better or post full code here.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

actually this client didnt import from mysql ,

local motd = getElementData(source, "account:motd") or ""

first argument "getElementData(source,"account:motd") doesnt work , it's gone to or ""

but on server side ,

local motd = getElementData(source, "account:motd") or ""

work fine :roll:

Posted

it's Client side so you need to replace source with localPlayer.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...