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

Wysłany: 2012-04-22, 00:01


eras800







Wiek: 31
Na forum: 5767 dni
Posty: 30
Nick w MP: Jobas

Piwa: 1049

Respekt: 33

Ostrzeżeń: 20%
Witam tak bawi?em si? map? i mam takie errory.

Kod:

Kod:

C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 012: invalid function call, not a valid address
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : warning 215: expression has no effect
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 001: expected token: ";", but found ")"
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 029: invalid expression, assumed zero
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : fatal error 107: too many error messages on one line

Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Oto ten kod

Kod:

Kod:

if(dWyswietlHP(i)<20)

Daje za pomoc :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-23, 07:06


Kaw3rGames







Wiek: 30
Na forum: 5200 dni
Posty: 25
Nick w MP: Kaw3rGames

Piwa: 14

Respekt: 50

Ostrzeżeń: 40%
Witam. Mam problem. Mianowicie:

Kod:



ty.pwn(76) : error 055: start of function body without function header
ty.pwn(78) : error 010: invalid function or declaration




Linijki:

Kod:



76: {

78: return 1;




A pomi?dzy tym:

Kod:


Create3DTextLabel("moj text haha", COLOR_CZERW, -345.0672, 1117.3196, 19.5938, 30, 0, 0 );



Pomocy! Za helpa daje browara!

Podpis
Czas na powolną przesiadkę na LUA :)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-24, 19:27


Sillence







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

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Kaw3rGames,

Zr?b tak :
Pawn
Create3DTextLabel("moj text haha"COLOR_CZERW, -345.06721117.319619.5938300);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-26, 08:23


Logitech12







Wiek: 31
Na forum: 5346 dni
Posty: 5
Nick w MP: [_Logitech_]



Respekt: 50

C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 017: undefined symbol "strrest"
C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 033: array must be indexed (variable "BReason")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Pom??cie dam :arrow: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 14:17


HunterS

Pff..






Wiek: 29
Na forum: 5164 dni
Posty: 11
Nick w MP: _Sonix[HA]

Piwa: 4

Respekt: 50

Ostrzeżeń: 40%
C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 017: undefined symbol "strrest"

daj zmienn? new strrest; a jak j? ju? masz to j? usu? :D


ps. drugi b??d to ta sama linijka to powinien ju? znikn?? :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 22:45


staleczka12







Wiek: 29
Na forum: 6296 dni
Posty: 29

Piwa: 287

Respekt: 53

Ostrzeżeń: 40%
Chc? doda? pasek do liczniku Destroy'a ale mam b??d kod:

Kod:


b??dy:
Kod:


I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(284) : error 017: undefined symbol "vehid"
I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(285) : error 017: undefined symbol "vehid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Ostatnio zmieniony przez MG303 2012-04-27, 22:54, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 22:55


MG303







Wiek: 30
Na forum: 6418 dni
Posty: 654

Piwa: 2990

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

Kod:

public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{

for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
{
new vehicleid;
if((vehicleid = GetPlayerVehicleID(playerid)) && paliwo[playerid] != INVALID_BAR_ID)
{
GetVehicleHealth(vehicleid, Gas[vehicleid]);
SetProgressBarValue(paliwo[playerid], Gas[vehicleid]);
UpdateProgressBar(paliwo[playerid], playerid);
}
}
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 23:12


staleczka12







Wiek: 29
Na forum: 6296 dni
Posty: 29

Piwa: 287

Respekt: 53

Ostrzeżeń: 40%
Mam takie co?:

Kod:

I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(284) : warning 213: tag mismatch


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 23:18


MG303







Wiek: 30
Na forum: 6418 dni
Posty: 654

Piwa: 2990

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

Kt?ra to linijka?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-27, 23:33


staleczka12







Wiek: 29
Na forum: 6296 dni
Posty: 29

Piwa: 287

Respekt: 53

Ostrzeżeń: 40%
GetVehicleHealth(vehicleid, Gas[vehicleid]);

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-30, 20:16


Elegancik







Wiek: 36
Na forum: 5308 dni
Posty: 8
Nick w MP: Tofik



Respekt: 50

Czesc. Sklejam map?, i wyskakuje mi error :

C:\Users\samsung\Desktop\Stance\SA2.pwn(1016) : error 010: invalid function or declaration
C:\Users\samsung\Desktop\Stance\SA2.pwn(1020) : error 010: invalid function or declaration
C:\Users\samsung\Desktop\Stance\SA2.pwn(2971) : error 012: invalid function call, not a valid address
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 012: invalid function call, not a valid address
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 001: expected token: ";", but found ")"
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 029: invalid expression, assumed zero
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : fatal error 107: too many error messages on one line

Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.


Kod z Pierwszych 2 error?w :

FormatFilesString(playerid);
SetPlayerSkin(playerid, dini_Int(strfiles, "Skin"));
new strmsg[64];
switch(reason)
{
case 0: format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Crash).", PlayerName(playerid), playerid);
case 1:
{
SaveData(playerid);
format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Wyszed?).", PlayerName(playerid), playerid);
}
case 2: format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Kick/Ban).", PlayerName(playerid), playerid);
}
DestroyDynamic3DTextLabel(PlayerInfo[playerid][pPlayer3DText]);
KillTimer(PlayerInfo[playerid][UseLoadTimer]);
SendClientMessageToAll(COLOR_GREY, strmsg);
TextDrawHideForPlayer(playerid, PhotoradarTD[playerid]);
KillTimer(PlayerInfo[playerid][pPhotoradarTimer]);
DestroyVehicle(PlayerInfo[playerid][pCar]);
return 1;
}


Reszta :
if(dialogid == 1)
{
if(response)
{
new string[256];
if(strlen(inputtext) <= 3 || strlen(inputtext) >= 32)
return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Rejestracja", "Has?o nie mo?e zawiera? mniej ni? 3 i wi?cej ni? 32 znaki.", "Ponownie", "Zamknij");
djCreateFile(PlayerFile(PlayerName(playerid);
djSetInt(PlayerFile(PlayerName(playerid)), "Konto/Haslo", PlayerPassword(inputtext));
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/Pieniadze", 0);
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/Score", 0);
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/StanVia", 200);
SetPVarInt(playerid, "StanVia", 200);
format(string, sizeof string, "Konto utworzone. Login: {d6bd8b}%s{00aeff}, Has?o: {d6bd8b}%s{00aeff}.", PlayerName(playerid),inputtext);
SendClientMessage(playerid, JasnyNiebieski, string);
SetPVarInt(playerid, "Zalogowany", 1);
}
}

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-01, 10:26


Cukier







Wiek: 34
Na forum: 5189 dni
Posty: 1
Nick w MP: xDDd



Respekt: 50

Siemka Mam troche error?w i nie wiem co robi? prosz? o POMOC! :D

Kod:

D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1432) : error 017: undefined symbol "Read"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1436) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1436) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1440) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1444) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1527) : error 017: undefined symbol "rSetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1528) : error 017: undefined symbol "rSetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1529) : error 017: undefined symbol "Save"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5631) : error 017: undefined symbol "rGetStr"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5633) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5634) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5662) : error 017: undefined symbol "rSetStr"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5666) : error 017: undefined symbol "rSetInt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

A tutaj te linijki z tymi b?edami:

1432 tu jest linijkia:
Kod:

public OnPlayerConnect(playerid)
{
new playername[MAX_PLAYER_NAME];
new tmp[256];
new idx;
new string[128];

GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, 128, "*** %s (id: %d) do??czy? do serwera.", playername,playerid);
SendClientMessageToAll(COLOR_GREY, string);
Read(playerid);
{
}

if(rGetInt(playerid, "Zarejestrowany"))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Logowanie", "Witaj.\n\nWpisz swoje has?o, aby si? zalogowa?.", "Zaloguj", "Wyjd?");
}
else
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Rejestracja", "Witaj.\n\nWpisz swoje has?o zabezpieczaj?ce dost?p do twojego konta.\nHas?o musi zawiera? od 5 znak?w do 20.", "Rejestruj", "Wyjd?");
}
proby[playerid] = 0;


A tu te ko?cowe linijki:
Kod:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128],
pName[MAX_PLAYER_NAME];
if(dialogid == 1) //LOGOWANIE
{
if(response == 0)
{
Kick(playerid);
} else {
if(strcmp(inputtext, rGetStr(playerid, "HASLO"), false) == 0)
{
SetPlayerScore(playerid, rGetInt(playerid, "Score"));
GivePlayerMoney(playerid, rGetInt(playerid, "Kasa"));
SetPVarInt(playerid, "Zalogowany", 1);
}
else
{
proby[playerid] = 5;
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, "Nieprawid?owe has?o! Pozosta?a ilo?? pr?b: %d/5", proby[playerid]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Logowanie", string, "Loguj", "Wyjd?");
proby[playerid]--;
if(proby[playerid] == 0)
{
Kick(playerid);
format(string, sizeof string, "Gracz %s zosta? zkickowany, pow?d: b??dne has?o", pName);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
}
}

if(dialogid == 2) //REJESTRACJA
{
if(response == 0)
{
Kick(playerid);
} else {
if(strlen(inputtext) >= 5 && strlen(inputtext) <= 20)
{
rSetStr(playerid, "HASLO", inputtext);
format(string, sizeof(string), "Zarejestrowano!\n\nTwoje has?o: %s", inputtext);
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Rejestracja", string, "Ok", "");
SetPVarInt(playerid, "Zalogowny", 1);
rSetInt(playerid, "Zarejestrowany", 1);
}
else
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Rejestracja", "Twoje has?o musi mi?c przynajmniej 5 znak?w!\nSpr?buj ponownie.", "Rejestruj", "Wyjd?");
}
}
}
return 1;
}


I co tu mo?e by? ?le?:d

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-01, 11:20


DumpeR







Wiek: 30
Na forum: 5330 dni
Posty: 171
Nick w MP: dumpeer

Piwa: 1026

Respekt: 48,3

Nie masz takich funkcji:
- Read,
- GetInt,
- Save,
- SetStr,
- SetInt

Oraz ?le u?o?ony kod. Musisz go u?o?y? lub doda? na g?r? Skryptu/Gamemoda #pragma tabsize 0. Jednak lepiej uk?ada? kod.

Pozdrawiam.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-02, 18:39


B!4CK

Never give UP!






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

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

B??dy :
Kod:

C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 017: undefined symbol "NICK"
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : warning 215: expression has no effect
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : fatal error 107: too many error messages on one line

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


4 Errors.



Linijka :
Kod:

Update3DTextLabelText(NICK[playerid], KOLOR_CZERWONY, NickWys(playerid));


Podpis
Cześć
! :)


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

 
Wysłany: 2012-05-02, 18:50


Quis

Wszechwiedzący






Wiek: 31
Na forum: 5146 dni
Posty: 464
Nick w MP: Quis

Piwa: 1110

Respekt: 325
Respekt: 325Respekt: 325Respekt: 325

Kompilator nie wie co to "NICK".
Co do reszty, poka? dwie linijki nad t? co poda?e?.

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