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

Wysłany: 2011-06-17, 16:21


gruszex







Wiek: 28
Na forum: 6038 dni
Posty: 53

Piwa: 10

Respekt: 60,6

tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-06-17, 18:18


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

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

Kod:

#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new pic;
public OnGameModeInit()
{
pic = CreatePickup(1272, 23, 1752.4972,-1893.2482,13.5574, -1);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pic){
SetPlayerPos(playerid, 1749.4747,-1804.2114,52.4688);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GREEN, "BAR");
return 1;
}
return 1;
}


spr?buj tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-06-17, 19:30


ZeuS







Wiek: 28
Na forum: 5487 dni
Posty: 1



Respekt: 50

Cytat:

D:\DOCUME~1\Dj@ris\Pulpit\SYSTEM~1.PWN(241) : warning 203: symbol is never used: "strtok2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


Wie ktos jak to naprawic??Niemam wogole takiej linijki w skrypcie ale jest w niej blad prosze o pomoc z gory thx.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-06-17, 20:09


adrian_pl_20







Wiek: 31
Na forum: 6684 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

nigdzie nie u?y?e? tablicy o nazwie strtok2

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-06-19, 23:10


Bubu







Wiek: 29
Na forum: 5582 dni
Posty: 8
Nick w MP: Bubu

Piwa: 2

Respekt: 50

C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(35) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(35) : error 017: undefined symbol "OnPlayerCommandReceived"
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(36) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(36) : error 017: undefined symbol "OnPlayerCommandPerformed"
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(62) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(63) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(79) : warning 225: unreachable code
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(79) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(79) : error 017: undefined symbol "zcmd_OnGameModeInit"
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(83) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(83) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(119) : warning 225: unreachable code
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(119) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Pulpit\erwer\Pawno\include\zcmd.inc(119) : error 017: undefined symbol "zcmd_OnPlayerCommandText"
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1965) : error 017: undefined symbol "AntiDeAMX"
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1980) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1980) : error 017: undefined symbol "zcmd_OnGameModeInit"
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1982) : error 017: undefined symbol "AntiDeAMX"
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1995) : warning 225: unreachable code
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1995) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1995) : error 017: undefined symbol "cmd_systemh"
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1995) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Zima\Moje dokumenty\Downloads\newprojekt (1).pwn(1995) : fatal error 107: too many error messages on one line
20 Error?w

Podpis
WWW.STKLA.XAA.PL Najlepszy Truckerski Serwer Samp
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-06-21, 15:17


zigimaka

OoZoOmP






Wiek: 31
Na forum: 5595 dni
Posty: 71
Nick w MP: Mateusz_Szymkowiak

Piwa: 43

Respekt: 60

Kod:

else if(dialogid == 41)
{
if(!response) return 1;
Loop(i)
{
if(IsPlayerConnected(i)&&KupowanieAutaID[i]==playerid)
{
new gracz=i;
if(GetPlayerVehicleID(gracz)==KupowanieAutaWoz[gracz])
{
if(ACKasa[playerid]>=KupowanieAutaKwota[gracz])
{
new woz=KupowanieAutaWoz[gracz];
if(PlayerInfo[gracz][pAuto]==woz)
{
PlayerInfo[gracz][pAuto]=9999;
}
else if(PlayerInfo[gracz][pAuto2]==woz)
{
PlayerInfo[gracz][pAuto2]=9999;
}
else if(PlayerInfo[gracz][pAuto3]==woz)
{
PlayerInfo[gracz][pAuto2]=9999;
}
else if(PlayerInfo[gracz][pAuto4]==woz)
{
PlayerInfo[gracz][pAuto2]=9999;
}
else if(PlayerInfo[gracz][pAuto5]==woz)
{
PlayerInfo[gracz][pAuto2]=9999;
}

if(PlayerInfo[playerid][pAuto]==9999)
{
PlayerInfo[playerid][pAuto]=woz;
}
else if(PlayerInfo[playerid][pAuto2]==9999)
{
PlayerInfo[playerid][pAuto2]=woz;
}
else if(PlayerInfo[playerid][pAuto3]==9999)
{
PlayerInfo[playerid][pAuto3]=woz;
}
else if(PlayerInfo[playerid][pAuto4]==9999)
{
PlayerInfo[playerid][pAuto4]=woz;
}
else if(PlayerInfo[playerid][pAuto5]==9999)
{
PlayerInfo[playerid][pAuto5]=woz;
}

PlayerInfo[playerid][pPosiadaneAuta]++;
PlayerInfo[gracz][pPosiadaneAuta]--;
RemovePlayerFromVehicle(gracz);
ACDajKase(playerid,-KupowanieAutaKwota[gracz]);
ACDajKase(gracz,KupowanieAutaKwota[gracz]);
strmid(SamochodInfo[woz][sWlasciciel], Nick(playerid), 0, 255, 999);
Info(playerid,"Kupi?e? nowy pojazd!");
Info(gracz,"Sprzeda?e? tw?j pojazd!");
KupowanieAutaID[gracz]=999;
KupowanieAutaWoz[gracz]=0;
KupowanieAutaKwota[gracz]=0;
KupowanieAutaID[playerid]=999;
KupowanieAutaWoz[playerid]=0;
KupowanieAutaKwota[playerid]=0;
ZapiszSamochody();
ZapiszUstawieniaGracza(playerid);
ZapiszUstawieniaGracza(gracz);
}else{ Info(playerid,"Nie masz tyle kasy!"); }
}
return 1;
}
}
}



Mam pro?b? jak zrobi? ?eby oferowa?o pojazd osobie kt?ra chce sprzeda?. Bo oferuje sprzeda? osobie sprzedaj?cej mog? prosi? o rozwi?zanie problemu ? Z g?ry dzi?kuje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-04, 01:20


Flegma8

MisTeR






Wiek: 37
Na forum: 6434 dni
Posty: 22

Piwa: 65

Respekt: 50

Ostrzeżeń: 100%
Kod:

D:\gta sere\Pawno+Include\Pawno+Include\include\dutils.inc(379) : error 025: function heading differs from prototype
D:\gta sere\Pawno+Include\Pawno+Include\include\dutils.inc(380) : error 021: symbol already defined: "strtok"
D:\gta sere\Pawno+Include\Pawno+Include\include\dutils.inc(395) : error 047: array sizes do not match, or destination array is too small


379
Kod:

bWlasciciel[MAX_PLAYER_NAME],

380
Kod:

bOpis[256],

395
Kod:

tu jest spacja :) a po
forward WczytajPosiadlosci();
public WczytajPosiadlosci()


Ja ju? raz sobie z tym poradzi?em, niestety format pozbawi? mnie wszystkiego no i od nowa musz? to robi?... Tylko nie pami?tam w czym problem.

Ps po usuni?ciu
Kod:

#include strtok

Wywala mi 26 error?w :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-04, 19:21


adrian_pl_20







Wiek: 31
Na forum: 6684 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

moze bys napisal jakie bledy

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-04, 22:27


Flegma8

MisTeR






Wiek: 37
Na forum: 6434 dni
Posty: 22

Piwa: 65

Respekt: 50

Ostrzeżeń: 100%
Sorki zapomnia?em :D

Kod:

xx\gamemodes\RP.pwn(2423) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2440) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2468) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2862) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2916) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2965) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(2992) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3027) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3052) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3080) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3089) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3114) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3121) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3124) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3127) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3175) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(3642) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4230) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4238) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4457) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4521) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4553) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4560) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4562) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4778) : error 047: array sizes do not match, or destination array is too small
xx\gamemodes\RP.pwn(4785) : error 047: array sizes do not match, or destination array is too small

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


26 Errors.

Prosz? o pomoc :D

edit://
2423
Kod:

cmd = strtok(cmdtext, idx);

2440
Kod:

tmp = strtok(cmdtext, idx);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-04, 22:51


xqz

otaku desu!






Wiek: 32
Na forum: 6407 dni
Posty: 723
Nick w MP: xqz

Piwa: 5465

Respekt: 418,6
Respekt: 418,6

Flegma8, klamry

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-06, 20:34


zigimaka

OoZoOmP






Wiek: 31
Na forum: 5595 dni
Posty: 71
Nick w MP: Mateusz_Szymkowiak

Piwa: 43

Respekt: 60

Cytat:

8.pwn(6128) : error 017: undefined symbol "strreplace"
8.pwn(6128) : error 033: array must be indexed (variable "nick")
8.pwn(6136) : error 017: undefined symbol "strreplace"
8.pwn(6136) : error 033: array must be indexed (variable "nick")
8.pwn(6407) : error 017: undefined symbol "strreplace"
8.pwn(6545) : error 017: undefined symbol "Fight_OnPlayerKeyStateChange"
8.pwn(7954) : error 017: undefined symbol "DT_OnPlayerConnect"
8.pwn(8026) : error 017: undefined symbol "Fight_OnPlayerConnect"
8.pwn(8574) : error 017: undefined symbol "DT_OnPlayerDisconnect"
8.pwn(9040) : error 017: undefined symbol "DT_OnPlayerDeath"
8.pwn(9145) : error 017: undefined symbol "DT_OnPlayerSpawn"
8.pwn(9575) : error 017: undefined symbol "GREY"
8.pwn(9581) : error 017: undefined symbol "GREY"
8.pwn(9599) : error 017: undefined symbol "GREY"
8.pwn(9756) : error 017: undefined symbol "SetPlayerDistanceTraveled"
8.pwn(9899) : error 017: undefined symbol "SetPlayerDistanceTraveled"
8.pwn(10123) : error 017: undefined symbol "DT_OnPlayerRequestClass"
8.pwn(10411) : error 017: undefined symbol "GetPlayerDistanceTraveled"
8.pwn(10415) : error 017: undefined symbol "SetPlayerDistanceTraveled"
8.pwn(11775) : error 017: undefined symbol "DT_OnGameModeInit"
8.pwn(14573) : error 017: undefined symbol "DT_OnPlayerInteriorChange"
8.pwn(14970) : error 017: undefined symbol "strreplace"
8.pwn(14970) : error 033: array must be indexed (variable "string")
8.pwn(14971) : error 017: undefined symbol "strreplace"
8.pwn(14971) : error 033: array must be indexed (variable "string")
8.pwn(14972) : error 017: undefined symbol "strreplace".




jak naprawi?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-12, 11:15


FICU







Wiek: 33
Na forum: 6863 dni
Posty: 2

Piwa: 356

Respekt: 50

Witam. Mam problem w napisaniu filterscripts z radiem(dok?adnie Audio Plugin). Mam nast?puj?cy error:

Kod:

C:\Users\FICU\Desktop\samp03csvr_R2-2_win32\filterscripts\radio.pwn(64) : error 030: compound statement not closed at the end of file (started at line 16)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Linijki od 13 na d??:

Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext,"/radio", true) == 0) {
SendClientMessage(playerid, COLOR_LIGHTBLUE,"SYSTEM: Wpisz /radio1 aby w??czy? RMF MAXXX");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"SYSTEM: Wpisz /radio2 aby w??czy? DubStep FM");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"SYSTEM: Wpisz /radio3 aby w??czy? HardBase.FM");
SendClientMessage(playerid, COLOR_LIGHTRED," SYSTEM: Aby wylaczyc radio wpisz /radiooff");
return 1;
}


if(strcmp(cmdtext,"/radio1",true) ==0)
{
if(Audio_IsClientConnected(playerid))
{
odtwarzany[playerid] = Audio_PlayStreamed(playerid, "http://www.miastomuzyki.pl/rmfmaxxx.asx");
SendClientMessage(playerid, COLOR_RED, "Grammy na MAXXX'A");
}
return 1;
}

if(strcmp(cmdtext,"/radio2",true) ==0)
{
if(Audio_IsClientConnected(playerid))
{
odtwarzany[playerid] = Audio_PlayStreamed(playerid, "http://www.dubstep.fm/listen.asx");
SendClientMessage(playerid, COLOR_RED, "!!DubStep Power!!");
}
return 1;
}

if(strcmp(cmdtext,"/radio3",true) ==0)
{
if(Audio_IsClientConnected(playerid))
{
odtwarzany[playerid] = Audio_PlayStreamed(playerid, "http://listen.hardbase.fm/tunein-aacplus-pls");
SendClientMessage(playerid, COLOR_RED, "HS & HC");
}
return 1;
}

if(strcmp(cmdtext,"/radiostop",true) ==0)
{
if(Audio_IsClientConnected(playerid))
{
Audio_Stop(playerid, odtwarzany[playerid]);
SendClientMessage(playerid, COLOR_RED, "Wy??czy?e? radio");
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-12, 11:17


radeh2

Performer






Wiek: 32
Na forum: 6330 dni
Posty: 141
Nick w MP: Mr.R

Piwa: 875

Respekt: 120
Respekt: 120

Daj przed ostatnim returnem jeszcze jedn? klamr? ;p

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-13, 09:42


hunter12







Wiek: 29
Na forum: 5463 dni
Posty: 2
Nick w MP: John_Teylor



Respekt: 50

jak si? tego pozbyc czyta??m i nic nie zrozumia?m :)
Kod:

C:\Documents and Settings\admin\Pulpit\fotki kota\samp serwer )\gamemodes\NEW.pwn(174) : warning 219: local variable "auto" shadows a variable at a preceding level
C:\Documents and Settings\admin\Pulpit\fotki kota\samp serwer )\gamemodes\NEW.pwn(180) : warning 202: number of arguments does not match definition
C:\Documents and Settings\admin\Pulpit\fotki kota\samp serwer )\gamemodes\NEW.pwn(251) : warning 213: tag mismatch
C:\Documents and Settings\admin\Pulpit\fotki kota\samp serwer )\gamemodes\NEW.pwn(251) : warning 213: tag mismatch
C:\Documents and Settings\admin\Pulpit\fotki kota\samp serwer )\gamemodes\NEW.pwn(251) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Warnings.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-13, 11:36


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Podaj linijki ;]

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