Wysłany: 2012-02-18, 19:52
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
A wiec tak, dzis chcai?em zrobic brame na cmd i gdy wpisuje cmd brama przy otwieraniu obraca mi sie o 90 stopni ;/ niemam zielonego pojacia dlaczego
oto kod
Kod:
#include <a_samp>
new brama;
public OnFilterScriptInit()
{
brama = CreateObject(980, 2089.3328, 1593.5436, 12.5486, 0.0000, 0.0000, 89.9390);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp( "/mars.z", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) == 1)
{
MoveObject(brama=, 2089.3328, 1593.5436, 12.5486, 3);
GameTextForPlayer(playerid, "~w~Brama Zostala~n~~n~~r~Zamknieta" , 4000, 5);
}
return 1;
}
if (strcmp( "/mars.o", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) == 1)
{
MoveObject(brama=, 2089.3328, 1593.5436, 7.0384, 3);
GameTextForPlayer(playerid, "~w~Brama Zostala~n~~n~~r~ Otwarta" , 4000, 5);
return 1;
}
}
za pomoc z g?ry dziekuje ;-)
Wysłany: 2012-02-18, 19:58
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
Kod: MoveObject(brama, 2089.3328, 1593.5436, 12.5486, 3, 0.0, 0.0, 0.0);
i w 2przyk?adzie:
Kod: MoveObject(brama, 2089.3328, 1593.5436, 7.0384, 3, 0.0, 0.0, 0.0);
Wysłany: 2012-02-18, 20:07
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
Kod: C:\Users\lukass\Desktop\bramaluxora.pwn(65) : warning 202: number of arguments does not match definition
C:\Users\lukass\Desktop\bramaluxora.pwn(65) : warning 202: number of arguments does not match definition
C:\Users\lukass\Desktop\bramaluxora.pwn(65) : warning 202: number of arguments does not match definition
C:\Users\lukass\Desktop\bramaluxora.pwn(74) : warning 202: number of arguments does not match definition
C:\Users\lukass\Desktop\bramaluxora.pwn(74) : warning 202: number of arguments does not match definition
C:\Users\lukass\Desktop\bramaluxora.pwn(74) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.
teraz errory sa ;/
Wysłany: 2012-02-18, 20:12
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
Lukasbank , u?ywasz sampa 0.3d? bo powinno by? ok
je?li nie to zr?b tak:
Kod: public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp( "/mars.z", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) == 1)
{
MoveObject(brama, 2089.3328, 1593.5436, 12.5486, 3);
GameTextForPlayer(playerid, "~w~Brama Zostala~n~~n~~r~Zamknieta" , 4000, 5);
}
return 1;
}
if (strcmp( "/mars.o", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid) == 1)
{
MoveObject(brama, 2089.3328, 1593.5436, 7.0384, 2);
GameTextForPlayer(playerid, "~w~Brama Zostala~n~~n~~r~ Otwarta" , 4000, 5);
return 1;
}
return 0;
}
Wysłany: 2012-02-18, 20:24
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
nom uzywam samp d i niechodzi wogole to a na samp c normalnie smiga
mimo iz komplikuje sie to i tak sie obraca o 90 stopni
[ Dodano : 2012-02-18, 23:49 ]
Ju? naprawi?em problem , poprostu sciagne?em nowe pluginy ;-)
Tagi: brama :: sa-mp
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: