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

Wysłany: 2016-07-06, 14:05


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

Czesc wgralem zcmd do serwera ale mam jak zwykle bledy :(
Kod:

C:\Users\Karol\Desktop\Serwer\pawno\include\zcmd.inc(96) : warning 217: loose indentation
C:\Users\Karol\Desktop\Serwer\pawno\include\zcmd.inc(97) : warning 217: loose indentation
C:\Users\Karol\Desktop\Serwer\pawno\include\zcmd.inc(98) : warning 217: loose indentation

A to linijki
Kod:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;

Stawiam :piwo:

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-06, 16:57


NitroFuN

El Barto






Wiek: 25
Na forum: 4127 dni
Posty: 532

Piwa: 1195

Respekt: 650,5
Respekt: 650,5Respekt: 650,5

To nie b??dy, tylko ostrze?enie, ?e nie masz u?o?onego kodu / jest ?le u?o?ony :P

Rozwi?zania s? trzy:
1. U?o?y? kod tabulatorem
2. Doda? #pragma tabsize 0 pod includami
3. Ola? to, bo to nie wp?ywa na gamemoda

Osobi?cie polecam opcj? numer 1 :D

Podpis
GG: 61963221 - Discord: NitroFuN#2819


Gracz SA:MP - 2010-2019
Support Team - 26.11.2017 - 16.01.2018

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-06, 18:36


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

Co to tabulator? xd

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-06, 18:43


NitroFuN

El Barto






Wiek: 25
Na forum: 4127 dni
Posty: 532

Piwa: 1195

Respekt: 650,5
Respekt: 650,5Respekt: 650,5



Serio nie wiesz? :shock: To podstawa, kt?r? ucz? w podstaw?wce lol

Podpis
GG: 61963221 - Discord: NitroFuN#2819


Gracz SA:MP - 2010-2019
Support Team - 26.11.2017 - 16.01.2018

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 08:03


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

Aha xd myslalem ze jakis program ;D

[ Dodano: 2016-07-07, 08:20 ]
hmm ale nie rozumiem wszystko jest tak samo jak tutaj to dlaczego akurat te linijki?

Dodalem
Kod:

#pragma tabsize 0
i nadal :( wiem ze nie wplywaja errory na serwer ale nie chce ich xD

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 09:59


ShaKeS







Wiek: 26
Na forum: 3699 dni
Posty: 38
Nick w MP: ShaKeS

Piwa: 1

Respekt: 50

A gdzie ja da?e?? Te linike

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 10:57


Iggy

#admin






Wiek: 26
Na forum: 4597 dni
Posty: 3469
Nick w MP: Iggy

Piwa: 1716

Respekt: 915
Respekt: 915Respekt: 915


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Karollos, dodaj to gdzie? na g?rze gamemoda, pod includami czy co?, ale lepiej jest ten kod po prostu u?o?y?, je?eli sam masz z tym problemy, poszukaj jakiego? uk?adacza kodu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 13:00


NitroFuN

El Barto






Wiek: 25
Na forum: 4127 dni
Posty: 532

Piwa: 1195

Respekt: 650,5
Respekt: 650,5Respekt: 650,5

Skasuj ten zcmd, utw?rz nowy zcmd.inc i wklej to http://pastebin.com/SbJc7iXa

Podpis
GG: 61963221 - Discord: NitroFuN#2819


Gracz SA:MP - 2010-2019
Support Team - 26.11.2017 - 16.01.2018

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 13:02


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

"ShaKeS" napisał/a:

A gdzie ja da?e?? Te linike

pod includami

[ Dodano: 2016-07-07, 14:18 ]
"NitroFuN" napisał/a:

Skasuj ten zcmd, utw?rz nowy zcmd.inc i wklej to http://pastebin.com/SbJc7iXa


Zrobilem tak jak mowilsz i nadal :(
Nw moze ja cos zle robie
Najpierw otwieram Notepad++ wklejam tam kod z pastebin, ktory mi dales klikam zapisz jako wybieram gdzie chce zapisac wpisuje nazwe zcmd.inc wybieram rozszerzenia "wszystkie" i to tyle co zrobilem i po tym nadal mam errory :(

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 15:01


ShaKeS







Wiek: 26
Na forum: 3699 dni
Posty: 38
Nick w MP: ShaKeS

Piwa: 1

Respekt: 50

A poka? te linki jak i linki nad nimi

[ Dodano: 2016-07-07, 15:02 ]
Poka? ss z tego kawa?ka kodu najlepiej

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 17:52


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

"ShaKeS" napisał/a:

A poka? te linki jak i linki nad nimi

[ Dodano: 2016-07-07, 15:02 ]
Poka? ss z tego kawa?ka kodu najlepiej


Masz caly gm xD





Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-07, 19:25


Szymon9910911







Wiek: 25
Na forum: 4137 dni
Posty: 251
Nick w MP: Tetral [you]

Piwa: 9

Respekt: 70

Kod:


#include <a_samp>
#include <zcmd>
#include <streamer>
#include <sscanf2>
#include <Dini>

#pragma tabsize 0

//Kolory
#define Zielony 0x009000FF
#define JasnyZielony 0x00FF00FF
#define Error 0xFF0000FF
#define Niebieski 0x0000FFFF
#define Zolty 0xFFFF00FF
#define Bialy 0xFFFFFFFF
#define Kremowy 0xFFB7FFFF
#define Pomaranczowy 0xFFA82EFF
#define Fioletowy 0xBE00FFFF
#define Szary 0xC7C7C7FF
#define Czarny 0x000000FF

main()
{
print("\n------------------------------------------------------------");
print(" Serwerek");
print("--------------------------------------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("DM/Stunt/Drift");
AddPlayerClass(0, 200, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(1, 1716.4232, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(2, 1716.4232, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
}

public OnGameModeExit()
{
CreateDynamicObject(16112, 1721.17615, -5210.79004, -8.18872, -25.00000, 0.00000, 0.00000);
CreateDynamicObject(16112, 1699.94812, -5201.12646, -8.02400, 0.00000, 0.00000, 288.84302);
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1716.4232, -5195.7910, 4.7255);
SetPlayerFacingAngle(playerid, 198.3050);
SetPlayerCameraPos(playerid, 1713.4585, -5191.5557, 6.2202);
SetPlayerCameraLookAt(playerid, 1716.4232, -5195.7910, 4.7255);
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}


sprawdz tego gma :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-08, 07:56


Karollos







Wiek: 27
Na forum: 4130 dni
Posty: 282

Piwa: 89

Respekt: 60

"Szymon9910911" napisał/a:

Kod:


#include <a_samp>
#include <zcmd>
#include <streamer>
#include <sscanf2>
#include <Dini>

#pragma tabsize 0

//Kolory
#define Zielony 0x009000FF
#define JasnyZielony 0x00FF00FF
#define Error 0xFF0000FF
#define Niebieski 0x0000FFFF
#define Zolty 0xFFFF00FF
#define Bialy 0xFFFFFFFF
#define Kremowy 0xFFB7FFFF
#define Pomaranczowy 0xFFA82EFF
#define Fioletowy 0xBE00FFFF
#define Szary 0xC7C7C7FF
#define Czarny 0x000000FF

main()
{
print("\n------------------------------------------------------------");
print(" Serwerek");
print("--------------------------------------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("DM/Stunt/Drift");
AddPlayerClass(0, 200, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(1, 1716.4232, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(2, 1716.4232, -5195.7910, 4.7255, 269.1425, 0, 0, 0, 0, 0, 0);
}

public OnGameModeExit()
{
CreateDynamicObject(16112, 1721.17615, -5210.79004, -8.18872, -25.00000, 0.00000, 0.00000);
CreateDynamicObject(16112, 1699.94812, -5201.12646, -8.02400, 0.00000, 0.00000, 288.84302);
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1716.4232, -5195.7910, 4.7255);
SetPlayerFacingAngle(playerid, 198.3050);
SetPlayerCameraPos(playerid, 1713.4585, -5191.5557, 6.2202);
SetPlayerCameraLookAt(playerid, 1716.4232, -5195.7910, 4.7255);
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}


sprawdz tego gma :D

Nadal ;/ moze cos z plikami serwerowymi jest nie tak?

[ Dodano: 2016-07-08, 08:00 ]
Cos jest z zcmd usunalem w gm includa <zcmd> i na dole mapki
Kod:

publicOnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}
(przy instalacji zcmd trzeba bylo je wgrac) I nagle nie ma errorow nw moze cos faktycznei jest z zcmd

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-08, 08:08


RivEk2002







Wiek: 23
Na forum: 4002 dni
Posty: 193
Nick w MP: RivEk

Piwa: 9

Respekt: 31,5

Ziomek, powiem tak. Je?li nie chcesz np. Je?li kto? u?y? cmd , kt?rej nie ma w systemie to pojawia sie tekst tam. Je?li ten tekst chcesz zmienic to potrzeba ci 1 z tych public?w. Ale do robienia cmd nie potrzeba ci ich. Odrazu pisz
CMD:100hp(playerid,params[])
{

SetPlayerHealth(playerid,100);

return 1;
}

Tamto up to przyk?ad :-)
Poczytaj sobie poradniki zcmd :-)
Je?li pope?ni?em b??d sry na tablecie pisze.

Podpis
Pomagam w miare moich możliwości !


Moje gg to: 53393163
Masz problem to możesz napisac !
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-09, 14:05


dapra i Robyn

Ryl kłyk






Wiek: 27
Na forum: 3875 dni
Posty: 71
Nick w MP: RealQuick

Piwa: 7

Respekt: 60

Napisa?em jeden z poradnik?w na forum dotycz?cy instalacji zcmd. Wystarczy poszuka?. A u?ycie
Kod:

#pragma tabsize 0
nie jest zbyt profesjonalne. Lepiej samemu u?o?y? kod, wygl?da to wtedy bardziej estetycznie, ale je?li Ci si? a? tak nie chce, to mo?esz u?y? pragmy. Wszystko zale?y od Ciebie, mo?esz robi? sobie co chcesz.

Podpis

Gadu-Gadu: 61918484

Postaw piwo autorowi tego posta
 

 
Tagi: zcmd
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN 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