Wysłany: 2009-01-25, 16:05
lokowgw
Grafika/Sponsoring
Wiek: 34 Na forum: 6466 dni Posty: 47
Nick w MP: lokowgw
Piwa : 122
a m?j pickup?
g?ra:
Kod: AddStaticPickup(1318, 2,1895.8932, 1355.4196, 24.6702); // pozycja naszego picka gdzie ma sta? czyli na zewnatrz
AddStaticPickup(1318, 2,1888.2939, 1358.115, 16.537); // pozycja naszego picka gdzie ma sta? czyli w ?rodku
d??:
Kod: public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == 1318)
{
SetPlayerPos(playerid,1888.2939, 1358.115, 16.537); // pozycja gdzie ma przenie?? gracza czyli do ?rodka
return 1;
}
if(pickupid == 1)
{
SetPlayerPos(playerid,1895.8932, 1355.4196, 24.6702); // pozycja gdzie ma przenie?? gracza czyli na zew
return 1;
}
return 0;
}
Podpis
Szukasz sponsora?
Pisz na
PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Wysłany: 2009-01-25, 16:10
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
Wysłany: 2009-01-25, 16:43
lokowgw
Grafika/Sponsoring
Wiek: 34 Na forum: 6466 dni Posty: 47
Nick w MP: lokowgw
Piwa : 122
robi?em na wszystkie 3 sposoby i dupa.... ale dzia?a winda
Podpis
Szukasz sponsora?
Pisz na
PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Wysłany: 2009-01-25, 18:16
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
hmmm co tu ?le?
#include <a_samp>
#define COLOR_GREEN 0x0AFF0AAA
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"Aby zobaczyc komendy na serverze wpisz /lista");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lista", true)==0){
SendClientMessage(playerid, 0xFF0000AA, "tele- /ls /sf /lv /plaza /wojsko /tuning /tuning2");
SendClientMessage(playerid, 0xFF0000AA, "aby z respawnowa? pojazd wpisz jego nazwe");
SendClientMessage(playerid, 0xFF0000AA, "jako komenda na przyk?ad /infernus /elegy /nrg500 /bmx /greenwood");
SendClientMessage(playerid, 0xFF0000AA, "istnieje r?wnie? tuning wozu z aut sprotowych jako komenda /tune")
return 1;
}
Wysłany: 2009-01-25, 18:20
TNT
Ban(playerid);
Wiek: 32 Na forum: 6788 dni Posty: 145
Piwa : 1141
TomiLeo8 , a co masz zle??
Kod:
#include <a_samp>
#define COLOR_GREEN 0x0AFF0AAA
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"Aby zobaczyc komendy na serverze wpisz /lista");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lista", true)==0){
SendClientMessage(playerid, 0xFF0000AA, "tele- /ls /sf /lv /plaza /wojsko /tuning /tuning2");
SendClientMessage(playerid, 0xFF0000AA, "aby z respawnowa? pojazd wpisz jego nazwe");
SendClientMessage(playerid, 0xFF0000AA, "jako komenda na przyk?ad /infernus /elegy /nrg500 /bmx /greenwood");
SendClientMessage(playerid, 0xFF0000AA, "istnieje r?wnie? tuning wozu z aut sprotowych jako komenda /tune")
}
Z tego co widze to return niepotrzebny
Podpis
SupportTeam przemo.org
Wysłany: 2009-01-25, 18:30
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
Matek zrobilem tak i dalej 2 errory
Kod: E:\Server 0.2x\pawno\przyklad pwn..pwn(17) : error 001: expected token: ";", but found "}"
E:\Server 0.2x\pawno\przyklad pwn..pwn(18) : error 030: compound statement not closed at the end of file (started at line 12)
Wysłany: 2009-01-25, 19:16
adrian_pl_20
Wiek: 31 Na forum: 6779 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
spr?buj tak:
Kod: #include <a_samp>
#define COLOR_GREEN 0x0AFF0AAA
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"Aby zobaczyc komendy na serverze wpisz /lista");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lista", true)==0){
SendClientMessage(playerid, 0xFF0000AA, "tele- /ls /sf /lv /plaza /wojsko /tuning /tuning2");
SendClientMessage(playerid, 0xFF0000AA, "aby z respawnowa? pojazd wpisz jego nazwe");
SendClientMessage(playerid, 0xFF0000AA, "jako komenda na przyk?ad /infernus /elegy /nrg500 /bmx /greenwood");
SendClientMessage(playerid, 0xFF0000AA, "istnieje r?wnie? tuning wozu z aut sprotowych jako komenda /tune");
}
Wysłany: 2009-01-25, 19:46
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
Adrian zrobilem i wyskakuje jeden b?ad jeszcze
Kod: E:\SERVER~1.2X\pawno\lista.pwn(18) : error 030: compound statement not closed at the end of file (started at line 12)
Wysłany: 2009-01-25, 19:49
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
Kod: #include <a_samp>
#define COLOR_GREEN 0x0AFF0AAA
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"Aby zobaczyc komendy na serverze wpisz /lista");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lista", true)==0){
SendClientMessage(playerid, 0xFF0000AA, "tele- /ls /sf /lv /plaza /wojsko /tuning /tuning2");
SendClientMessage(playerid, 0xFF0000AA, "aby z respawnowa? pojazd wpisz jego nazwe");
SendClientMessage(playerid, 0xFF0000AA, "jako komenda na przyk?ad /infernus /elegy /nrg500 /bmx /greenwood");
SendClientMessage(playerid, 0xFF0000AA, "istnieje r?wnie? tuning wozu z aut sprotowych jako komenda /tune");
return 1;
}
return 0;
}
return niepotrzebny? !
Wysłany: 2009-01-25, 21:09
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
Oooo THX WIELKIE DZIEKI mialbym jeszcze jedn? pro?be ( probuje zrobic brame ale nie zrobie jej bo nie umiem a bardzo jej potrzebuje
Kod:
#include <a_samp>
new brama;
public OnGameModeInit()
{
CreateObject(972, -2135.9456, -183.1289, 34.3172, 0, 0, 89.3814);
public OnPlayerCommandText ()
{
if (strcmp(cmdtext "/bz.o", cmdtext, true, 10) == 0)
{
CreateObject(972, -2112.8909, -183.4651, 34.3172, 0, 359.1406, 90.2409);;
return 1;
}
if (strcmp(cmdtext "/bz.c", cmdtext, true, 10) == 0)
{
CreateObject(972, -2135.9456, -183.1289, 34.3172, 0, 0, 89.3814);
return 1;
}
Errory
Kod: E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(10) : error 029: invalid expression, assumed zero
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(10) : error 004: function "OnPlayerCommandText" is not implemented
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(12) : error 017: undefined symbol "cmdtext"
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(12) : warning 215: expression has no effect
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(12) : error 017: undefined symbol "cmdtext"
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(12) : error 029: invalid expression, assumed zero
E:\SERVER~1.2X\pawno\SFV2PW~1.PWN(12) : fatal error 107: too many error messages on one line
Wysłany: 2009-01-25, 21:45
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
Kod: #include <a_samp>
new brama;
public OnGameModeInit()
{
CreateObject(972, -2135.9456, -183.1289, 34.3172, 0, 0, 89.3814);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext "/bz.o", cmdtext, true, 10) == 0)
{
MoveObject(brama, x, y, z otwartej bramy, pr?dko?? otwierania);
return 1;
}
if (strcmp(cmdtext "/bz.c", cmdtext, true, 10) == 0)
{
MoveObject(brama, x, y, z zamkni?tej, pr?dko?? otwierania);
return 1;
}
return 0;
}
http://www.gtaonline.pl/2898.htm - jak zrobic bram?
Wysłany: 2009-01-25, 21:50
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
hmmm CZYTALEM okolo 30 poradnikow jak zrobic brame...
i nie moge ale probuje
Kod: #include <a_samp>
new brama;
public OnGameModeInit()
{
CreateObject(972, -2135.9456, -183.1289, 34.3172, 0, 0, 89.3814);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext "/bz.o", cmdtext, true, 10) == 0)
{
MoveObject(brama,-2112.8909, -183.4651, 34.3172, 3);
return 1;
}
if (strcmp(cmdtext "/bz.c", cmdtext, true, 10) == 0)
{
MoveObject(brama,-2135.9456, -183.1289, 34.3172, 3);
return 1;
}
return 0;
}
Error
Kod: E:\Server 0.2x\pawno\brama.pwn(15) : error 001: expected token: ",", but found "-string-"
E:\Server 0.2x\pawno\brama.pwn(15) : warning 215: expression has no effect
E:\Server 0.2x\pawno\brama.pwn(15) : warning 215: expression has no effect
E:\Server 0.2x\pawno\brama.pwn(15) : warning 215: expression has no effect
E:\Server 0.2x\pawno\brama.pwn(15) : warning 215: expression has no effect
E:\Server 0.2x\pawno\brama.pwn(15) : error 001: expected token: ";", but found ")"
E:\Server 0.2x\pawno\brama.pwn(15) : error 029: invalid expression, assumed zero
E:\Server 0.2x\pawno\brama.pwn(15) : fatal error 107: too many error messages on one line
Wysłany: 2009-01-25, 22:18
lokowgw
Grafika/Sponsoring
Wiek: 34 Na forum: 6466 dni Posty: 47
Nick w MP: lokowgw
Piwa : 122
Pomo?ecie mi z tym Pickupem?
Podpis
Szukasz sponsora?
Pisz na
PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Wysłany: 2009-01-26, 15:45
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
TomiLeo8 ,
Kod: #include <a_samp>
new brama;
public OnGameModeInit()
{
CreateObject(972, -2135.9456, -183.1289, 34.3172, 0, 0, 89.3814);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/bz.c", true) == 0)
{
MoveObject(brama,-2112.8909, -183.4651, 34.3172, 3);
return 1;
}
if(strcmp(cmdtext, "/bz.c", true) == 0)
{
MoveObject(brama,-2135.9456, -183.1289, 34.3172, 3);
return 1;
}
return 0;
}
lokowgw , czytaj dok?adnie poradniki a uda ci si?
Wysłany: 2009-01-27, 14:47
TomiLeo8
Wiek: 35 Na forum: 6776 dni Posty: 15
Piwa : 12
Zrobilem t? brame ale jeszcze troszke inaczej ale dzia?a teraz g?owie sie jak zrobic pickupa ( nie dawajcie poradnikow bo juz przeczytalem jeden i robilem z nim to i nic bylo z 20errorow na poczatku ale zmalalo ich duzo:D
Kod:
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
public OnGameModeInit;
{
AddStaticPickup(1239, 2, 1480.9272,-1770.5945,18.7958);
public OnPlayerPickUpPickup(playerid, pickupid);
if( == 3){
SendClientMessage(playerid, COLOR_GREEN, "Tutaj ma si? znajdowa? tw?j tekst");
return 1;
}
erorrki
Kod:
E:\SERVER~1.2X\pawno\PWN\RS.pwn(5) : error 055: start of function body without function header
E:\SERVER~1.2X\pawno\PWN\RS.pwn(10) : error 010: invalid function or declaration
E:\SERVER~1.2X\pawno\PWN\RS.pwn(12) : error 010: invalid function or declaration
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: