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

Wysłany: 2013-03-11, 19:07


wampiros6







Wiek: 34
Na forum: 5209 dni
Posty: 83

Piwa: 2

Respekt: 50

poczatek



Kod:


#include <a_samp>
#include <Streamer>
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

new brama1;
new brama1_state = 0;
new brama2;
new brama2_state = 0;
new most;
new most_state = 0;
new garaz;
new garaz_state = 0;
new strzelnica;
new strzlnica_state = 0;
new baza;
new baza_state = 0;
new winda;
new winda_state = 0;
new wylot1;
new wylot1_state = 0;
new wylot2;
new wylot2_state = 0;
new dom1;
new dom1_state = 0;
new dom2;
new dom2_state = 0;
new dom3;
new dom3_state = 0;
new zbrojownia;
new zbrojownia_state = 0;
new klatka;
new klatka_state = 0;
new mur1;
new mur2;


A to ciag dalszy



Kod:

if(!strcmp(cmdtext, "/swattp"))
{
SetPlayerPos(playerid, -2977.0, 473.60000610352, 4.9000000953674);
return 1;
}

if(!strcmp(cmdtext, "/swatcmd"))
{
new long_string[49];
strcat(long_string, "/swattp teleport do bazy\n/Autor fucktheneer");
ShowPlayerDialog(playerid, 8001, DIALOG_STYLE_MSGBOX, "komedy", long_string, "Zamknij", "");
return 1;
}
if(!strcmp(cmdtext, "/murd"))
{
MoveObject(mur1, 1389.3000500, 1795.0000000, 8.6000003814697, 5.0);
MoveObject(mur2, 1389.5999800, 1773.8000500, 8.6000003814697, 5.0);
return 1;
}
if(!strcmp(cmdtext, "/murg"))
{
MoveObject(mur1, 1389.3000500, 1795.0000000, 10.0000000, 5.0);
MoveObject(mur2, 1389.5999800, 1773.8000500, 10.1000000, 5.0);
return 1;
}
if(!strcmp(cmdtext, "/sumo"))
{
SetPlayerPos(playerid, 2737.1000976563, -1760.8000488281, 44.099998474121);
return 1;
}
if(!strcmp(cmdtext, "/mur"))
{
SetPlayerPos(playerid, 1408.6999511719, 1779.0, 10.800000190735);
return 1;
}
if(!strcmp(cmdtext, "/kswat"))
{
new long_string[454];
strcat(long_string, "/y - otwiera i zamyka pierwsz? brame\n/n - otwiera i zamyka drug? brame\n/num4 - wysuwa i chowa most\n/LPM - Lewy przycisk myszy-otwiera i zamyka brame do garazu\n/alt - otwiera i zamyka brame do strzelnicy\n/num8 - otwiera i zamyka brame do bazy\n/c - podnosi i opuszcza winde\n/num6 - otwiera i zamyka wylot\n/tab - otwiera i zamyka domy\n/num1 - otwiera i zamyka zbrojownie\n/PPM - Prawy przycis");
strcat(long_string, "k myszy-otwiera i zamyka klatke\n/Autor - fucktheneer");
ShowPlayerDialog(playerid, 8002, DIALOG_STYLE_MSGBOX, "klawisze", long_string, "Zamknij", "");
return 1;
}
return 0;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(65536) && IsPlayerInRangeOfPoint(playerid, 15.0, -3514.1999512, 469.0000000, 26.2000008)) //Y
{
if(brama1_state) //if open then close
MoveObject(brama1, -3514.1999512, 469.0000000, 26.2000008, 7.0);
if(!brama1_state) //if closed then open
MoveObject(brama1, -3514.1999512, 469.0000000, 20.89999961853, 7.0);
brama1_state = !brama1_state;
}
if(PRESSED(131072) && IsPlayerInRangeOfPoint(playerid, 15.0, -3635.5000000, 469.2000122, 25.89999961853)) //N
{
if(brama2_state) //if open then close
MoveObject(brama2, -3635.5000000, 469.2000122, 25.89999961853, 7.0);
if(!brama2_state) //if closed then open
MoveObject(brama2, -3635.5000000, 469.2000122, 21.0, 7.0);
brama2_state = !brama2_state;
}
{
if(PRESSED(8192) && IsPlayerInRangeOfPoint(playerid, 500.0, -3711.6000976563, 470.79998779297, 23.799999237061)) //num4
{
if(most_state) //if open then close
MoveObject(most, -3711.6000976563, 470.79998779297, 23.799999237061, 20.0);
if(!most_state) //if closed then open
MoveObject(most, -3599.3999023438, 470.89999389648, 23.799999237061, 20.0);
most_state = !most_state;
}
{
if(PRESSED(4) && IsPlayerInRangeOfPoint(playerid, 50.0, -3821.3000488281, 460.79998779297, 23.89999961853)) //lpm
{
if(garaz_state) //if open then close
MoveObject(garaz, -3821.3000488281, 460.79998779297, 23.89999961853, 7.0);
if(!garaz_state) //if closed then open
MoveObject(garaz, -3821.3000488281, 460.79998779297, 17.700000762939, 7.0);
garaz_state = !garaz_state;
}
{
if(PRESSED(1024) && IsPlayerInRangeOfPoint(playerid, 50.0, -3833.3999023, 461.7000122, 23.8999996)) //alt
{
if(strzlnica_state) //if open then close
MoveObject(strzelnica, -3833.3999023, 461.7000122, 23.8999996, 7.0);
if(!strzlnica_state) //if closed then open
MoveObject(strzelnica, -3833.3999023, 461.7000122, 17.700000762939, 7.0);
strzlnica_state = !strzlnica_state;
}
{
if(PRESSED(4096) && IsPlayerInRangeOfPoint(playerid, 50.0, -3828.2998047, 490.3994141, 23.8999996)) //num8
{
if(baza_state) //if open then close
MoveObject(baza, -3828.2998047, 490.3994141, 23.8999996, 7.0);
if(!baza_state) //if closed then open
MoveObject(baza, -3828.2998047, 490.3994141, 17.700000762939, 7.0);
baza_state = !baza_state;
}
{
if(PRESSED(2) && IsPlayerInRangeOfPoint(playerid, 50.0, -3641.5000000, 575.2000122, 23.8999996)) //c
{
if(winda_state) //if open then close
MoveObject(winda, -3641.5000000, 575.2000122, 23.8999996, 7.0);
if(!winda_state) //if closed then open
MoveObject(winda, -3641.5000000, 575.2000122, 49.799999237061, 7.0);
winda_state = !winda_state;
}
{
if(PRESSED(16384) && IsPlayerInRangeOfPoint(playerid, 500.0, -3637.7998047, 479.2998047, 52.5999985)) //num6
{
if(wylot1_state) //if open then close
MoveObject(wylot1, -3637.7998047, 479.2998047, 52.5999985, 7.0);
if(!wylot1_state) //if closed then open
MoveObject(wylot1, -3638.0000000, 479.0996094, 69.0, 7.0);
wylot1_state = !wylot1_state;
}
{
if(PRESSED(16384) && IsPlayerInRangeOfPoint(playerid, 500.0, -3638.0000000, 479.0996094, 61.4000015)) //num6
{
if(wylot2_state) //if open then close
MoveObject(wylot2, -3638.0000000, 479.0996094, 61.4000015, 7.0);
if(!wylot2_state) //if closed then open
MoveObject(wylot2, -3637.7998047, 479.2998047, 43.599998474121, 7.0);
wylot2_state = !wylot2_state;
}
{
if(PRESSED(1) && IsPlayerInRangeOfPoint(playerid, 50.0, -3924.3999023, 517.0000000, 27.5000000)) //tab
{
if(dom1_state) //if open then close
MoveObject(dom1, -3924.3999023, 517.0000000, 27.5000000, 7.0);
if(!dom1_state) //if closed then open
MoveObject(dom1, -3924.3999023, 517.0000000, 23.200000762939, 7.0);
dom1_state = !dom1_state;
}
{
if(PRESSED(1) && IsPlayerInRangeOfPoint(playerid, 50.0, -3922.0000000, 558.5999756, 27.5000000)) //tab
{
if(dom2_state) //if open then close
MoveObject(dom2, -3922.0000000, 558.5999756, 27.5000000, 7.0);
if(!dom2_state) //if closed then open
MoveObject(dom2, -3922.0000000, 558.5999756, 23.200000762939, 7.0);
dom2_state = !dom2_state;
}
{
if(PRESSED(1) && IsPlayerInRangeOfPoint(playerid, 50.0, -3888.1999512, 565.7000122, 27.5000000)) //tab
{
if(dom3_state) //if open then close
MoveObject(dom3, -3888.1999512, 565.7000122, 27.5000000, 7.0);
if(!dom3_state) //if closed then open
MoveObject(dom3, -3888.1999512, 565.7000122, 23.200000762939, 7.0);
dom3_state = !dom3_state;
}
{
if(PRESSED(512) && IsPlayerInRangeOfPoint(playerid, 20.0, -3833.1000976563, 560.5, 25.799999237061)) //num1
{
if(zbrojownia_state) //if open then close
MoveObject(zbrojownia, -3833.1000976563, 560.5, 25.799999237061, 7.0);
if(!zbrojownia_state) //if closed then open
MoveObject(zbrojownia, -3833.1000977, 560.5000000, 22.10000038147, 7.0);
zbrojownia_state = !zbrojownia_state;
}
{
if(PRESSED(128) && IsPlayerInRangeOfPoint(playerid, 10.0, -3704.8999023, 555.0000000, 23.8999996)) //PPM
{
if(klatka_state) //if open then close
MoveObject(klatka, -3704.8999023, 555.0000000, 23.8999996, 7.0);
if(!klatka_state) //if closed then open
MoveObject(klatka, -3704.8999023438, 555.0, 17.700000762939, 7.0);
klatka_state = !klatka_state;
}
}
}
}
}
}
}
}
}
}
}
}
}
}


@Edit
B??d naprawiony

Ostatnio zmieniony przez wampiros6 2013-03-17, 18:21, w całości zmieniany 2 razy  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 15:52


Sillence







Wiek: 26
Na forum: 5158 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Jakie b??dy Errory ? Tego nie poda?e? :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 15:58


wampiros6







Wiek: 34
Na forum: 5209 dni
Posty: 83

Piwa: 2

Respekt: 50

Nic wszystko pieknie komplikuje tylko na domowym niemoge pisac bo mi maszynke wylacza

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 16:10


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

server_log zapodaj..wampiros6,

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-13, 14:11


RasePL







Wiek: 31
Na forum: 4835 dni
Posty: 2
Nick w MP: Trane_Hawk/RasePL



Respekt: 50

Witam ,

Mam errory i nie wiem jak je usun?? , juz wszystkiego pr?bowa?em. Prosz? o szybk? pomoc.

Kod:


C:\Documents and Settings\User\Pulpit\better\heh.pwn(27493) : error 017: undefined symbol "pUID"
C:\Documents and Settings\User\Pulpit\better\heh.pwn(30459) : error 025: function heading differs from prototype
C:\Documents and Settings\User\Pulpit\better\heh.pwn(30460) : error 021: symbol already defined: "strrest"
C:\Documents and Settings\User\Pulpit\better\heh.pwn(30474) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\User\Pulpit\better\heh.pwn(38064) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
C:\Documents and Settings\User\Pulpit\better\heh.pwn(39213) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\User\Pulpit\better\heh.pwn(39366) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\User\Pulpit\better\heh.pwn(39672) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\User\Pulpit\better\heh.pwn(39822) : error 047: array sizes do not match, or destination array is too small


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-13, 14:13


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

RasePL, zaktualizuj wszystkie include pod 0.3x oraz dodaj na g?rze
#define SPECIAL_ACTION_CUFFED

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-13, 14:29


RasePL







Wiek: 31
Na forum: 4835 dni
Posty: 2
Nick w MP: Trane_Hawk/RasePL



Respekt: 50

blackelegy Mam nowe includy 0.3x i nadal b??dy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-13, 18:48


koxownica12







Wiek: 33
Na forum: 4860 dni
Posty: 2

Piwa: 3

Respekt: 50

Wgra?em sobie komende do gamemoda na dawanie expa i s? errory . POMOCY !

Kod:

if(strcmp(cmd, "/daj-expa", true)== 0 && IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "U?yj: /daj-expa [ilo?? expa] [id gracza]");
new ilosc_expa = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "U?yj: /daj-expa [ilo?? expa] [id gracza]");
new id_gracza = strval(tmp);

if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Ten gracz nie jest pod??czony!");
if(ilosc_expa < 1) return SendClientMessage(playerid, COLOR_RED, "Nieprawid?owa ilos? expa!");

DajExpa(id_gracza, ilosc_expa);
format(tmp, sizeof(tmp), "Da?e? %d expa graczowi %s", ilosc_expa, PlayerName(id_gracza));
SendClientMessage(playerid, COLOR_GREEN, tmp);
format(tmp, sizeof(tmp), "Admin %s da? ci %d expa", PlayerName(playerid), ilosc_expa);
SendClientMessage(id_gracza, COLOR_GREEN, tmp);
return 1;
}



a oto errory :/ //



Kod:

C:\Users\Wojtek\Desktop\lapacze.pwn(1463) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1464) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1465) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1467) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1468) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1469) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1474) : error 017: undefined symbol "DajExpa"
C:\Users\Wojtek\Desktop\lapacze.pwn(1475) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1475) : error 017: undefined symbol "tmp"
C:\Users\Wojtek\Desktop\lapacze.pwn(1475) : error 029: invalid expression, assumed zero
C:\Users\Wojtek\Desktop\lapacze.pwn(1475) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright ? 1997-2006, ITB CompuPhase


11 Errors.


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-13, 22:34


Sillence







Wiek: 26
Na forum: 5158 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Daj zaraz pod OnPlayerCommandText:
Kod:

new tmp[128];


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-28, 15:56


wampiros6







Wiek: 34
Na forum: 5209 dni
Posty: 83

Piwa: 2

Respekt: 50

Witam. Mam problem z serwerem i? jak co? chce napisa? na czacie to si? serwer wy??cza. Najdziwniejsze jest to ze tylko mi si? wy??cza a innym graczom dzia?a.Z pocz?tku my?la?em ze to nowy skrypt ma ten b??d lecz go usun??em i dalej mam ten problem. Mo?e komu? si? to zdarzy?o wiec by?bym wdzi?czny o pomoc.Strona do mapy http://gtao.pl/wold-game-...a8d2fa9ed572cfe .

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-28, 17:07


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

wampiros6, logi poka?.

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-29, 10:28


wampiros6







Wiek: 34
Na forum: 5209 dni
Posty: 83

Piwa: 2

Respekt: 50

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team

[10:26]
[10:26] Server Plugins
[10:26] --------------
[10:26] Loading plugin: Audio
[10:26]

*** Audio Plugin v0.5 by Incognito loaded ***

[10:26] Loaded.
[10:26] Loading plugin: Sscanf
[10:26]

[10:26] ===============================

[10:26] sscanf plugin loaded.

[10:26] (c) 2009 Alex "Y_Less" Cole

[10:26] 0.3d-R2 500 Players "dnee"

[10:26] ===============================

[10:26] Loaded.
[10:26] Loading plugin: streamer(2)
[10:26] Failed.
[10:26] Loading plugin: Streamer
[10:26]

*** Streamer Plugin v2.6 by Incognito loaded ***

[10:26] Loaded.
[10:26] Loaded 3 plugins.

[10:26]
[10:26] Filterscripts
[10:26] ---------------
[10:26] Loading filterscript 'rangi.amx'...
[10:26] Unable to load filterscript 'rangi.amx'.
[10:26] Loading filterscript 'FarmerJob.amx'...
[10:26] OnFilter
[10:26]
----------------------------
[10:26] Farmer Job FS Made by Virusa1
[10:26] ----------------------------

[10:26] Loading filterscript 'GangSystem.amx'...
[10:26]
------------------------------------------------

[10:26] ~ Gang System v.A by Jimmy J - LOADED ~
[10:26] ~ ENJOY! ~

[10:26] ------------------------------------------------

[10:26] Loading filterscript 'antyip.amx'...
[10:26] AntyIP 2.0v by Luby - Uruchomiono
[10:26] Loading filterscript 'bron_na_plecach.amx'...
[10:26] =====================================================================
[10:26] This is a part of a OpenGTA subject, visit opengta.org for more info.
[10:26] FilterScript Name: Armed body
[10:26] Description:Attatch weapond to player's body
[10:26] Author:yezizhu
[10:26] Special thanks:Double-O-Seven, Brian.
[10:26] Contact author: [email protected]
[10:26] =====================================================================
[10:26] Loading filterscript 'bazabp.amx'...
[10:26] Loading filterscript 'kupexpa.amx'...
[10:26] Loading filterscript 'nitro.amx'...
[10:26] Loading filterscript 'obiekty.amx'...
[10:26] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26002) (script needs to be recompiled with the latest include file)
[10:26] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[10:26] Loading filterscript 'power-fire.amx'...
[10:26] Fire-Power by BRICS loaded.
[10:26] Loading filterscript 'respc.amx'...
[10:26] Loaded 10 filterscripts.

[10:26] OnGameo
[10:26] *** Audio Plugin: Started TCP server on port 7777
[10:26] OnGameo
[10:26]
~ Gang System Info: Stworzono 1 gang! ~

[10:26] Za?adowano respawn aut pomy?lnie!
[10:26] Stworzy? [PSK]Smok
[10:26] Pom?g?: gr56
[10:26] Kontakt z autorem GG:3577448
[10:26]

[10:26] =======================================
[10:26] @ Autor: Topek & Sullivan
[10:26] @ Edycja: WiceWersa & SebOsDM
[10:26] @ V. v3.0
[10:26] @ Za?adowane domy: 85
[10:26] @ Czas ?adowania: 149968.7812s.
[10:26] ========================================


[10:26] Number of vehicle models: 20
[10:26] Incoming connection: 25.137.162.34:55164
[10:26] [join] fucktheneer[S.W.A.T] has joined the server (0:25.137.162.34)
[10:27] *** Audio Plugin: Incoming connecting from 25.137.162.34:56229
[10:27] *** Audio Plugin: fucktheneer[S.W.A.T] (ID: 0) has connected

^
tutaj jak sie polaczylem napisalem cos nie panietam i sie serwer offn??

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-29, 10:56


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

Kod:

[10] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26002) (script needs to be recompiled with the latest include file)
[10] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)


Plugin nie odpowiada na include czyli ,albo masz najnowszego include, a starego plugin'a lub odwrotnie. Pobierz najnowszego streamer'a z forum sa-mp.com

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-29, 11:48


wampiros6







Wiek: 34
Na forum: 5209 dni
Posty: 83

Piwa: 2

Respekt: 50

wymienilem pluginy i nic

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-29, 11:52


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

wampiros6, a include? Przekonwertuj od nowa map? / skrypty z nowym include.

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » BŁĘDY PRZY KOMPILACJI - ROZWIĄZANIE Odpowiedz do tematu

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