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

Wysłany: 2011-10-01, 16:21


kurczak1324







Wiek: 29
Na forum: 5820 dni
Posty: 202
Nick w MP: Izzy

Piwa: 671

Respekt: 45,3

Pobierz nowe include

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-01, 17:22


wiatruwa







Wiek: 38
Na forum: 5818 dni
Posty: 2



Respekt: 50

Ostrzeżeń: 20%
Ju? rozwi?za?em problem,dzi?ki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-10, 20:04


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

Nie rozumiem, czego pawno si? czepia.
Kod:

if (strcmp(cmdtext, "/zycie", true)==0){
heal = SetTimerEx("100hp", 30000, 0, "i", playerid);
(linijka 326)forward 100hp(playerid);
public 100hp(playerid)
{
SendClientMessage(playerid, info, "INFO: {DC7900}Twoje ?ycie zostanie zregenerowane za 30 sekund.");
SetPlayerHealth(playerid, 100);
return 1;
}


Errory:
Kod:


niewazne.pwn(326) : error 029: invalid expression, assumed zero
niewazne.pwn(326) : error 029: invalid expression, assumed zero
niewazne.pwn(326) : error 029: invalid expression, assumed zero
niewazne.pwn(326) : fatal error 107: too many error messages on one line // tego nie musicie tlumaczyc


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-10, 20:15


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Kod:

if (strcmp(cmdtext, "/zycie", true)==0){
SetTimerEx("100hp", 30000, 0, "i", playerid);
return 1;
}
forward 100hp(playerid);
public 100hp(playerid)
{
SendClientMessage(playerid, info, "INFO: {DC7900}Twoje ?ycie zostanie zregenerowane za 30 sekund.");
SetPlayerHealth(playerid, 100);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-10, 20:18


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

To samo, dlaczego u mnie forward wy?wietla si? na czarno, czy nie powinien wy?wietla? si? na niebiesko?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-10, 22:54


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

forward nie, tylko public :p

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-11, 09:01


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

No, ale errory s? - rozumiesz to?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-11, 21:57


Combacior







Wiek: 29
Na forum: 5796 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Kod:

if (strcmp(cmdtext, "/no-afk", true)==0){
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Wr?ci?e? do gry.");
}
if (GetPlayerInterior(playerid) == 0){
SendClientMessage(playerid,COLOR_RED,"Nie jeste? w poczekalni.");
return 0;
}
SetPlayerInterior(playerid,0);
SpawnPlayer(playerid);
return 1;
}


Ta poczekalnia znajduje si? w interiorze 1, i teraz chcia?bym, aby:

- je?eli gracz jest na dworze, czyli interior 0 ?eby wy?wietla?a si? wiadomo??, ?e nie jest w poczekalni, ale bez wiadomo?ci SERVER: Unknown Command
- je?eli gracz by? w poczekalni, czyli interior 1 i po wpisaniu komendy /no-afk, ?eby wy?wietla?a si? wiadomo??, wyszed?e? z poczekalni, ale te? bez wiadomo?ci

Bo jak uda mi si? jedno, nie uda mi si? drugie, a jak kombinuje z returnami, to wyskakuj? warningi z returnami.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-28, 20:28


kubadolot







Wiek: 32
Na forum: 5378 dni
Posty: 1
Nick w MP: kubad

Piwa: 31

Respekt: 50

mam problem gdyz robie mape i mam tylko 2 errory powmrzcie oto one: C:\DOCUME~1\DANIEL~1\Pulpit\PULPIT\Mapa\GAMEMO~1\PDS.pwn(4912) : error 055: start of function body without function header
C:\DOCUME~1\DANIEL~1\Pulpit\PULPIT\Mapa\GAMEMO~1\PDS.pwn(4914) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Prosze o szybk? odpowiedz. Za pomoc zimne :arrow: :piwo: i mozliwe ze adm na moim serwe wiec pomurzcie z tymi errorami. Najszybsza i najlepsza odpowiedz ma na serwei adma a oto forum serw w remontarzu: www.pdsforum.jun.pl

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-29, 10:14


Kalin







Wiek: 31
Na forum: 5334 dni
Posty: 1
Nick w MP: Andrew_Rabbit



Respekt: 50

Ostrzeżeń: 100%
Podaj linijki kodu od 4910 do 4916 poniewa? mog? to by? b??dy z klamrami :)

Podpis








Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-29, 22:04


bols244







Wiek: 31
Na forum: 5338 dni
Posty: 6
Nick w MP: bols244



Respekt: 50

Witam wszystkich zaczne od tego ze jestem nowy i lubie si? bawic slabo sie znam na pawn wi?c pytam
Edytuja mapke Minokona tak aby mi odpowiada?y nazwy kasuje niepotrzebne teamy itd..
gdy edytuje pawn i chce skompilowac mam takie errory:
[code]C:\Users\Nivelo\Desktop\CJ!.pwn(56) : error 020: invalid symbol name ""
C:\Users\Nivelo\Desktop\CJ!.pwn(2328) : warning 203: symbol is never used: ""
linijki koncza sie na 2327 wiec nie wiem dlaczego wyskakuje blad z 2328
ca?y pawn
Kod:

//LV~TDM 1.5 by Minokon
//Rejestracja by Minokon v0.42 for LV~TDM with Bank System
//GameMode for SA-MP 0.3
//Admin Commands by Minokon (/acmd)

#include <a_samp>
#include <dudb>
#include <cpstream>

//DCMD
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

//colors
#define C_DEFAULT 0x1373A6FF
#define C_RED 0xFF0000FF

//team-colors
#define KOLOR_POLICE 0x0000B9FF //ciemnoniebieski
#define KOLOR_MEDIC 0xEAB9BAFF //bia?y z domieszk? czerwonego

//teams
#define TEAM_POL 1 //policeman (policjant)
#define TEAM_MED 2 //medical (medyk)

//config
#define WYMUSREG //wymagana rejestracja
#define StartMoney 6000 //2x, w banku i w portfelu
#define MSGBOX_ID 99 //domy?lne ID wiadomo?ci w okienku (DIALOG_STYLE_MSGBOX)

//global
new gTeam[MAX_PLAYERS];
new zalogowany[MAX_PLAYERS];
new Mute[MAX_PLAYERS];
new nick[200][24];
new bankcp;

//textdraws
new Text:respekt[MAX_PLAYERS];

//teams-textdraws
new
Text:PktPol,
Text:PktMed,

//teams-pkt

PkPol,
PkMed,

//teams-zone

PolZone,
MedZone,

//forwards
forward SaveStats();
forward RefreshTeamsScore();
forward restart();

main()
{
print("LV~TDM 1.5 by Minokon Loaded");
}

public OnGameModeInit()
{
//Timers
SetTimer("SaveStats",5000,1);//co 5 sekund

//config
SetGameModeText("LV~TDM 1.5");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(true);
AllowInteriorWeapons(false);
DisableInteriorEnterExits();
EnableStuntBonusForAll(false);
UsePlayerPedAnims();

//TextDraws
for(new i=0;i<GetMaxPlayers();i++)
{
respekt[i] = TextDrawCreate(500.000000,97.000000,"Respekt: 0");
TextDrawBackgroundColor(respekt[i],0x000000ff);
TextDrawFont(respekt[i],3);
TextDrawLetterSize(respekt[i],0.499999,1.799999);
TextDrawColor(respekt[i],C_DEFAULT);
}

//team-score
PktPol = TextDrawCreate(17.000000,164.000000,"Policjanci: 0");
TextDrawBackgroundColor(PktPol,0x000000ff);
TextDrawFont(PktPol,3);
TextDrawLetterSize(PktPol,0.599999,1.700000);
TextDrawColor(PktPol,KOLOR_POLICE);

PktMed = TextDrawCreate(17.000000,180.000000,"Medycy: 0");
TextDrawBackgroundColor(PktMed,0x000000ff);
TextDrawFont(PktMed,3);
TextDrawLetterSize(PktMed,0.599999,1.700000);
TextDrawColor(PktMed,KOLOR_MEDIC);


//GangZones
PolZone = GangZoneCreate(2185.174, 2401.59, 2356.987, 2521.5);
MedZone = GangZoneCreate(1533.065, 1705.338, 1630.686, 1883.269);

//Checkpoints
bankcp = CPS_AddCheckpoint(2463.0430,2243.8521,10.8203,3,3000);

//Classes
AddPlayerClass(282, 2311.1423, 2454.5977, 10.8203, 178.9938, 3, 1, 22, 400, 27, 40); //policeman
AddPlayerClass(275, 1587.7577, 1844.9271, 10.8203, 184.8478, 4, 1, 24, 200, 25, 60); //medical

//Police Vehicles
AddStaticVehicle(598,2299.4919,2428.0349,10.6003,131.9148,0,1);
AddStaticVehicle(598,2312.8408,2418.2661,10.5225,267.4971,0,1);
AddStaticVehicle(598,2311.9807,2431.5430,3.0512,182.1988,0,1);
AddStaticVehicle(598,2289.6594,2431.4102,3.0546,1.1399,0,1);
AddStaticVehicle(598,2240.9739,2437.3125,3.0511,89.1996,0,1);
AddStaticVehicle(598,2240.7256,2456.6694,3.0542,267.5236,0,1);
AddStaticVehicle(598,2240.6445,2461.2188,3.0536,267.5236,0,1);
AddStaticVehicle(598,2298.5835,2464.4563,3.0535,270.1377,0,1);
AddStaticVehicle(598,2297.9688,2456.1746,3.0531,92.3529,0,1);
AddStaticVehicle(598,2314.1533,2464.9631,3.0518,270.7977,0,1);
AddStaticVehicle(598,2251.4878,2442.5898,10.5983,177.6552,0,1);
AddStaticVehicle(598,2260.0579,2458.8792,10.6002,0.3196,0,1);
AddStaticVehicle(598,2277.9648,2476.3284,10.5981,179.9345,0,1);
AddStaticVehicle(598,2282.0898,2443.6887,10.5988,178.9651,0,1);
AddStaticVehicle(598,2273.4146,2443.6248,10.5984,0.5305,0,1);


Nie dodalem calego pawn bo nie zmiesci sie a nie wiem jak innaczej zrobic i'm newbie

Na koniec je?eli wogo?e si? nie da edyutowa? tak kogos mapy jak ja mysle prosze napisac


56 linijka: forward SaveStats();

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-04, 18:05


wasik95

[KST]






Wiek: 31
Na forum: 5346 dni
Posty: 63
Nick w MP: W_A_S_I_K

Piwa: 12

Respekt: 50

Witam wszystkich mam problem. Ot?? przy ka?dej frakcji powinno by? w?a?nie nazwa firmy jak osoba pisze a czacie. wz?r W_A_S_I_K(pomoc-drogowa)
[public OnPlayerText(playerid, text[])
{

new str[128];
if(IsPlayerAdmin(playerid))
{
format(str, sizeof str, "(ID:%d)(Admin): %s", playerid, text);
}
else
{
format(str, sizeof str, "(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_SER)
{
format(str, sizeof str, "{C0C0C0}[Tuning&Serwis]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_POMOC)
{
format(str, sizeof str, "{996600}[Pomoc Drogowa]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_POLICJA)
{
format(str, sizeof str, "{FFFFFF}[Policja](ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_MEDYK)
{
format(str, sizeof str, "{FFFFFF}[Medyk](ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_TAXI)
{
format(str, sizeof str, "{FFFF00}[Taxi]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_BAR)
{
format(str, sizeof str, "{FFFF99}[BAR]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_VIP)
{
format(str, sizeof str, "{FFFFFF}[VIP](ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_PKS)
{
format(str, sizeof str, "{FFFF00}[PKS]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_WRD)
{
format(str, sizeof str, "{FFFFFF}[Egzaminator]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_OSK)
{
format(str, sizeof str, "{FFFFFF}[Instruktor]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_EURO)
{
format(str, sizeof str, "{FFFFFF}[Euro_TransT]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_GD)
{
format(str, sizeof str, "{FFFFFF}[GooD-Drive]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_RICO)
{
format(str, sizeof str, "{996600}[RICO]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_TT)
{
format(str, sizeof str, "{996600}[Tom-Trans]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_SPEED)
{
format(str, sizeof str, "{996600}[SpeeD-TranS]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_TP)
{
format(str, sizeof str, "{996600}[TP]{FFFFFF}(ID:%d):%s", playerid, text);
}
if(gTeam[playerid] == TEAM_MOD)
{
format(str, sizeof str, "{FFFFFF}[San News]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_FM)
{
format(str, sizeof str, "{FFFFFF}[FransMass]{FFFFFF}(ID:%d): %s", playerid, text);
}
if(gTeam[playerid] == TEAM_GT)
{
format(str, sizeof str, "{FFFFFF}[PolTrans]{FFFFFF}(ID:%d): %s", playerid, text);
}
SendPlayerMessageToAll(playerid, text);

return 0;
}
][/code]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-05, 08:15


daniel2098







Wiek: 28
Na forum: 5908 dni
Posty: 8

Piwa: 101

Respekt: 45,3

Ostrzeżeń: 20%
Mam taki error gdy zedytowan? map? pr?boje kompilowa? do amx:
Cytat:

C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1216) : error 010: invalid function or declaration
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1874) : error 004: function "KickMsg" is not implemented
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1923) : error 017: undefined symbol "BanMsg"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "b"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "Silnik"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "wylaczony"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.


Prosz? o jasne wyt?umaczenie, jestem "zielony".

[ Dodano: 2011-11-05, 08:15 ]
Mam taki error gdy zedytowan? map? pr?boje kompilowa? do amx:
Cytat:

C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1216) : error 010: invalid function or declaration
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1874) : error 004: function "KickMsg" is not implemented
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(1923) : error 017: undefined symbol "BanMsg"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "b"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "Silnik"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : error 017: undefined symbol "wylaczony"
C:\Documents and Settings\Szymek\Pulpit\mapapds\PD5.0.pwn(4807) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.


Prosz? o jasne wyt?umaczenie, jestem "zielony".

Podpis
[URL=http://www.anty-basta.xaa.pl]http://i55.tinypic.com/2qaqpw1.png[/U RL]
HostName: <<<<<>>>> - nowo¶ci
Address: 91.203.223.75:8208
Players: xXx / 20
Ping: xx
Mode: Drift v1
Map: San Andreas
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-05, 09:03


baueraldo







Wiek: 30
Na forum: 5457 dni
Posty: 4



Respekt: 50

POmocy !! Mam takie errory !

Kod:

C:\Documents and Settings\Baueraldo\Pulpit\Pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5129) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5130) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5139) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5140) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5149) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5150) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5159) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5160) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5169) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5170) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5179) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Baueraldo\Pulpit\GPX1.0.pwn(5180) : error 017: undefined symbol "AttachObjectToVehicle"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.


Co zrobi???

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-05, 10:30


BraYaN_







Wiek: 34
Na forum: 6603 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

baueraldo, ?ci?gnij najnowsze include. 0.3c R2: http://team.sa-mp.com/fil..._R2-2_win32.zip
0.3d RC7: http://team.sa-mp.com/RC/...r_RC7_win32.zip

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