Wysłany: 2013-06-07, 13:42
nors56
Wiek: 28 Na forum: 4775 dni Posty: 46
Nick w MP: Nors
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.
Wysłany: 2013-06-07, 13:59
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
Poszukaj w skrypcie AS.Tam na pewno znajdziesz ow? komend?.
Wysłany: 2013-06-07, 14:00
nors56
Wiek: 28 Na forum: 4775 dni Posty: 46
Nick w MP: Nors
"Rumun" napisał/a :Poszukaj w skrypcie AS.Tam na pewno znajdziesz ow? komend?.
AdminScript?
Wysłany: 2013-06-07, 15:20
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
Tak.Tam na pewno ona b?dzie.
Wysłany: 2013-06-07, 16:30
nors56
Wiek: 28 Na forum: 4775 dni Posty: 46
Nick w MP: Nors
"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
Wysłany: 2013-06-08, 10:04
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
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));
}
Wysłany: 2013-06-08, 12:20
nors56
Wiek: 28 Na forum: 4775 dni Posty: 46
Nick w MP: Nors
"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;
Wysłany: 2013-06-08, 16:32
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Wnioskuj?, ?e nie masz include'a zcmd?
Wysłany: 2013-06-08, 17:09
nors56
Wiek: 28 Na forum: 4775 dni Posty: 46
Nick w MP: Nors
"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);
Tagi: komenda :: tworzenie :: objektów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: