• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Local config.

bananq

New Member
Joined
Feb 5, 2013
Messages
36
Reaction score
3
Witam. Mam problem z wczytaniem danych z configu. Chcialbym zrobic cos takiego:

local config {
xxxbogdan = 3
}

a nastepnie wywolac:

config.xxx + getPlayerName(cid)

Czyli zeby czesc configu wywolac na "sztywno" a czesc dla kazdego gracza osobno. Jak polaczyc te dwie rzeczy?
Prosze o pomoc.
Pozdrawiam.
 
jak już masz zmienną xxxbogdan to potem musisz config.xxxbogdan, a nie config.xxx

potem masz np.

c = {
ggg = "the"
}

text = "Zwracam: " .. c.ggg .." ".. getPlayerName(cid) " :) "

- - - Updated - - -

i jak potem to "text" gdzieś wywołasz to uzyskasz;

"Zwracam: the Bananq"
 
Back
Top Bottom