Witam!
Mam problem, gdy? zawsze dzia?a?o, teraz nie, chodzi o to, ?e nie wy?wietla si? GUI po wej?ciu w Marker, db czyste.
-s-side
function open_gui1( hitElement, matchingDimension )
if getElementType(hitElement) == "player" then
triggerClientEvent(hitElement,"open_gui",hitElement) end
end
addEventHandler( "onMarkerHit", sultan_carmarker, open_gui1 )
[center]Cze??! Postanowi?em, ?e zrobi? teleporty dla os?b leniwych, kt?rym nie chce si? lata? po ca?ej mapie i zbiera? koordy na teleporty... Skrypt jest w zrobiony w zcmd.
LISTA TELEPORT?W (Na stan 2016-02-02):
/skok
/piramida
/skok2
/lvlot
/lv
/wiezowiec
/plaza
/ls
/rezydencja
/lslot
/chilliad
/doki
/sf
/sflot
/wojsko
W przyszlosci dodam wiecej teleportow, a moze i nawet 3DTexty
Prosz?, przeczytaj notk? ode mnie!
DOWNLOAD (Kod nale?y doda? do mapy):
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.
C:Documents and Settings123Pulpit123.pwn(13) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(15) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(17) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
KOD:
Linia 13: if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
Linia 15: if(IsPlayerConnected(playerid))
Linia17: if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))
Ca?y kod:
return 1;
}
if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))
{
GameTextForPlayer(playerid, "Witaj na komisariacie", 5000, 1);
SetPlayerInterior(playerid, 10); // ID ITERIORU
SetPlayerPos(playerid,247.5,109.40000152588,1002.9000244141); // POZYCJA DO KT?REJ MA TELEPORTOWAC PO WPISANIU /WEJDZ
}
}