• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

[8.31] Pomoc ze skryptem.

Status
Zamknięty.

GOD Uno

User
Zarejestrowany
Dołączył
Sierpień 8, 2008
Posty
40
Liczba reakcji
3
Wiek
31
Chcia?bym aby po pierwszym stani?ciu na kratk? o unique.id xxxx wyskoczyl pewien tekst. Tekst ma byc bialy lub czerwony, iz eby widzial go tylko gracz, kt?ry stan? na t? kratk?. Pr?bowa?em sam ale co? jest nie tak:
Kod:
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
   if getPlayerStorageValue(uid,4000) < 1 then
      doPlayerSendTextMessage(cid,"You are leaving town, please be careful!",22) 
then 
            setPlayerStorageValue(cid,4000,1)
end
a oto b??d, kt?ry silnik mi wy?wietla
Kod:
[10/12/2008  15:43:45] Warning: [Event::loadScript] Can not load script. data/movements/scripts/leavingtown.lua
[10/12/2008  15:43:45] data/movements/scripts/leavingtown.lua:5: unexpected symbol near 'then'
[10/12/2008  15:43:45] Warning: [Event::loadScript] Can not load script. data/movements/scripts/leavingtown.lua
[10/12/2008  15:43:45] data/movements/scripts/leavingtown.lua:5: unexpected symbol near 'then'
Z g?ry dzi?kuj? i nagrodz? reputkiem...

#down

ale ja chce zeby mozna bylo zrobic to tylko raz
 
Ostatnia edycja:
Odp: [8.31] Pomoc ze skryptem.

zamini then na else i powino chopdzi ale nie jestem pewien
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You are leaving town, please be careful!")
end
 
Ostatnia edycja:
Status
Zamknięty.
Back
Do góry