Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-07-27, 03:05


jolly

Początkujący .lua






Wiek: 28
Na forum: 3780 dni
Posty: 79
Nick w MP: AseQ/Mikku

Piwa: 1873

Respekt: -69

Ostrzeżeń: 60%
Cze??, dzi? chcia?em stworzy? do?? prosty skrypt, lecz no co? nie chc? zadzia?a?.

function kolorthePlayer )
local accName getAccountName getPlayerAccount thePlayer ) ) 
if isObjectInACLGroup ("user."..accNameaclGetGroup "Wlascicel" ) ) then
    setPlayerNametagColor thePlayer248,000,000 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "WspolWlascicel" ) ) then
    setPlayerNametagColor thePlayer248,000,000 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Skrypter" ) ) then
    setPlayerNametagColor thePlayer034,113,179 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "HeadAdmin" ) ) then
    setPlayerNametagColor thePlayer250,210,001 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Opiekun" ) ) then
    setPlayerNametagColor thePlayer255,117,020 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Admin" ) ) then
    setPlayerNametagColor thePlayer059,131,189 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "JuniorAdmin" ) ) then
    setPlayerNametagColor thePlayer059,131,189 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "SuperModerator" ) ) then
    setPlayerNametagColor thePlayer044,085,069 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Moderator" ) ) then
    setPlayerNametagColor thePlayer000,187,045 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Everyone" ) ) then
    setPlayerNametagColor thePlayer255,255,255 )    
    end
    end
    addEventHandler("onPlayerLogin"getRootElement(), kolor)

Co zrobi?em nie tak?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-07-27, 09:20


Szymczu

Programista bo tak






Wiek: 27
Na forum: 3435 dni
Posty: 194
Nick w MP: Szymczu

Piwa: 36

Respekt: 120
Respekt: 120

W "getPlayerAccount" podaj element source.

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
jolly
Wysłany: 2017-07-27, 09:39


jolly

Początkujący .lua






Wiek: 28
Na forum: 3780 dni
Posty: 79
Nick w MP: AseQ/Mikku

Piwa: 1873

Respekt: -69

Ostrzeżeń: 60%
Dalej nie dzia?a...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-07-27, 10:04


neku^







Wiek: 24
Na forum: 3522 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Opisz co ci nie chce dzia?a? skrypt sie nie chce w??czy?? Nie chce Ci nada? pozycji?
Swoj? drog? masz liter?wki, by? mo?e dlatego Ci nie dzia?a.

function kolorthePlayer )
local accName getAccountName getPlayerAccount thePlayer ) ) 
if isObjectInACLGroup ("user."..accNameaclGetGroup "Wlasciciel" ) ) then
    setPlayerNametagColor thePlayer248,000,000 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "WspolWlasciciel" ) ) then
    setPlayerNametagColor thePlayer248,000,000 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Skrypter" ) ) then
    setPlayerNametagColor thePlayer034,113,179 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "HeadAdmin" ) ) then
    setPlayerNametagColor thePlayer250,210,001 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Opiekun" ) ) then
    setPlayerNametagColor thePlayer255,117,020 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Admin" ) ) then
    setPlayerNametagColor thePlayer059,131,189 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "JuniorAdmin" ) ) then
    setPlayerNametagColor thePlayer059,131,189 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "SuperModerator" ) ) then
    setPlayerNametagColor thePlayer044,085,069 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Moderator" ) ) then
    setPlayerNametagColor thePlayer000,187,045 )
    setElementPosition thePlayer ,947.21118, -1653.3678013.54339 )    
elseif isObjectInACLGroup ("user."..accNameaclGetGroup "Everyone" ) ) then
    setPlayerNametagColor thePlayer255,255,255 )    
    end
    end
    addEventHandler("onPlayerLogin"getRootElement(), kolor)

Je?li nadalby ci nie dzia?a?o podaj b??d z db3

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
jolly
Wysłany: 2017-07-27, 10:15


jolly

Początkujący .lua






Wiek: 28
Na forum: 3780 dni
Posty: 79
Nick w MP: AseQ/Mikku

Piwa: 1873

Respekt: -69

Ostrzeżeń: 60%
Dalej nie dzia?a, DB3 czysty.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-07-27, 10:47


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

tutaj nie argument jest tym czym sie logujesz tylko source. Dodatkowo dodaj drugi argument z nazw? byle jak?i je?eli source nie dzia?a to daj zamiast niego ten drugi arg

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Tagi: elseify...
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » elseify... Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku