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

Wysłany: 2013-06-07, 13:42


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

Cze??. mam problem Z komen? na Tworzenie Objekt?w.
/postaw [Id Objektu] Tylko dla admina.
W zwi?zku z tym ?e nie moge tego nigdzie znale?c.
Chce poprosi? oto was.
Je?li Mogli By?cie to dla mnie zrobic to Podajcie mi caly Kod Na Pw lub w temacie jak tam wam pasuje. z g?ry bardzo dzi?kuje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-07, 13:59


Rumun







Wiek: 30
Na forum: 5235 dni
Posty: 316
Nick w MP: Rumun

Piwa: 25

Respekt: 69

Poszukaj w skrypcie AS.Tam na pewno znajdziesz ow? komend?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-07, 14:00


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

"Rumun" napisał/a:

Poszukaj w skrypcie AS.Tam na pewno znajdziesz ow? komend?.



AdminScript?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-07, 15:20


Rumun







Wiek: 30
Na forum: 5235 dni
Posty: 316
Nick w MP: Rumun

Piwa: 25

Respekt: 69

Tak.Tam na pewno ona b?dzie.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-07, 16:30


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

"Rumun" napisał/a:

Tak.Tam na pewno ona b?dzie.

Ta komenda z as Jest Ci??ko zbugowana Wog?le Sie ten Obiekt Nie pojawia

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 10:04


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

Kod:

CMD:postaw(playerid, p[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Nie jeste? administratorem!"), 1;
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetXYInFrontOfPlayer(playerid, pos[0], pos[1], 10.0);
CreateObject(p, pos[0], pos[1], pos[2], 0.0, 0.0, 0.0);
SendClientMessage(playerid, -1, "Stworzy?e? sw?j obiekt, hurrey!");
return 1;
}


Gdzie? w mapie:

Kod:

GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 12:20


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

"IgrexolonO" napisał/a:

Kod:

CMD:postaw(playerid, p[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Nie jeste? administratorem!"), 1;
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetXYInFrontOfPlayer(playerid, pos[0], pos[1], 10.0);
CreateObject(p, pos[0], pos[1], pos[2], 0.0, 0.0, 0.0);
SendClientMessage(playerid, -1, "Stworzy?e? sw?j obiekt, hurrey!");
return 1;
}


Gdzie? w mapie:

Kod:

GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}
\


Errory
(1340) : error 017: undefined symbol "CMD_postaw"
CMD:postaw(playerid, p[])

(1343) : error 017: undefined symbol "p"
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;

(1343) : error 029: invalid expression, assumed zero
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;

(1343) : error 017: undefined symbol "p"
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;

(1343) : fatal error 107: too many error messages on one line
if(isnull(p)) return SendClientMessage(playerid, -1, "U?ycie: /postaw [id obiektu]), 1;

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 16:32


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

Wnioskuj?, ?e nie masz include'a zcmd?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 17:09


nors56







Wiek: 28
Na forum: 4775 dni
Posty: 46
Nick w MP: Nors



Respekt: 50

"IgrexolonO" napisał/a:

Wnioskuj?, ?e nie masz include'a zcmd?

A ja wnioskuje ze mam

Mam jeszcze jeden b??d tamte naprawi?em

(3117) : error 035: argument type mismatch (argument 1)

CreateObject(p, pos[0], pos[1], pos[2], 0.0, 0.0, 0.0);

Postaw piwo autorowi tego posta
 

 
Tagi: komenda :: tworzenie :: objektów
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Komenda Na Tworzenie Objektów Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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