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

Wysłany: 2015-02-21, 15:25


HIZMEN







Wiek: 27
Na forum: 4633 dni
Posty: 66

Piwa: 48

Respekt: 50

Witam, mam taki problem dodaj? kilka linijek kodu i wywala mi errory i nwm dlaczego a jak usun? to normalnie prosz? o pomoc. Za pomoc piwko

Kod:

C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1728) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1747) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1773) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1782) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1783) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1784) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1790) : error 035: argument type mismatch (argument 2)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1798) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1810) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1811) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1812) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1865) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1868) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1873) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1878) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1977) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(1978) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2058) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2090) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2101) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2250) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2255) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2260) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2392) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2394) : error 035: argument type mismatch (argument 1)
C:\Users\User\Desktop\Serwer\gamemodes\pstp.pwn(2395) : error 035: argument type mismatch (argument 1)

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


26 Errors.


Kod:

new Gd[MAX_PLAYERS], Bar:pgGd[MAX_PLAYERS], StringSklepik[120], Float:Zycie;

enum Zywnosc
{
Name[24],
Kasa,
hpp
}

new Sklepik[][Zywnosc] =
{
{"Kanapka", 4, 1},
{"Zupa", 6, 2},
{"Mielony", 8, 3}
};


jedna linika gdzie jest zle

Kod:

if(dini_Exists(udb_encode(PlayerName(playerid)))){ //sprawdza czy nasze konto istnieje


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-17, 20:35


carl0987







Wiek: 37
Na forum: 4891 dni
Posty: 295
Nick w MP: Lolek

Piwa: 10

Respekt: 50

Pawn
new spawn dini_Int(FileStats(playerid), "spawn");
        if(spawn == 1)
        {
        new loadid dini_Int(FileStats(playerid), "domid");
        new loadx dini_Int(loadid"X");
        new loady dini_Int(loadid"Y");
        new loadz dini_Int(loadid"Z");
        GetPlayerPos(playeridloadxloadyloadz);
        }


errory:
Kod:

C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2053) : error 035: argument type mismatch (argument 1)
C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2054) : error 035: argument type mismatch (argument 1)
C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2055) : error 035: argument type mismatch (argument 1)


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-17, 20:59


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Funkcja GetPlayerPos pobiera pozycje gracza, a Ty chyba chcesz mu j? ustawi??
Od tego s?u?y funkcja SetPlayerPos.

Po za tym, pozycje zawsze robisz w float, czyli musisz zmienn? zrobi? typu:
Kod:

new Float:loadX;


nast?pnie, u?ywasz funkcji INT, a tutaj znow musisz u?y? FLOAT
Czyli stosuj?c moj? powy?sz? zmienn?:
Kod:


loadX = dini_Float(loadid, "X");


Nie dawa?em gotowca bo widz? ?e ogarniasz ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-17, 21:12


carl0987







Wiek: 37
Na forum: 4891 dni
Posty: 295
Nick w MP: Lolek

Piwa: 10

Respekt: 50

Niee chc? aby spawni?o go :)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-17, 21:26


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

To co chcesz? Tak nie ma sensu. Najpierw odczytujesz pozycj? X, Y, Z z plik?w do zmiennych, a p??niej pobierasz pozycj? gracza do tych zmiennych.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 12:07


EveY_







Wiek: 32
Na forum: 4595 dni
Posty: 29
Nick w MP: Przemo_CBN

Piwa: 10

Respekt: 50

Witam pisze w?a?nie GM Truck i mam problem bo mam 4 errory gdy zaczo?em robi? Rejestracje i logowanie z godnie ze wskaz?wkami Nikck888 pomo?e kto? ??

C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : error 027: invalid character constant
C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : error 029: invalid expression, assumed zero
C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : warning 215: expression has no effect
C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : warning 215: expression has no effect
C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : error 027: invalid character constant
C:\Users\EveY\Desktop\NOwy serwer\gamemodes\Truck.pwn(111) : 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.

A oto 111 Linijka z GM

ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD,"Login","Witaj na Serwerze.\NPodaj haslo aby si? zalogowac","Login","Anuluj");

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 12:23


Madd







Wiek: 30
Na forum: 4801 dni
Posty: 763
Nick w MP: Madd

Piwa: 1975

Respekt: 524,3
Respekt: 524,3

Nie mo?esz u?ywa? znak?w typu _ / i \ najwidoczniej powoduj? b??dy

Podpis


Wlasciciel serwera https://ptg-rp.pl/index.php oraz były Mod-Team Gtao.pl
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 12:31


EveY_







Wiek: 32
Na forum: 4595 dni
Posty: 29
Nick w MP: Przemo_CBN

Piwa: 10

Respekt: 50

nwm ma 2 takie linijki a errory tylko w 111

{
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD,"Login","Witaj na Serwerze.\NPodaj haslo aby si? zalogowac","Login","Anuluj");
}
else
{
ShowPlayerDialog(playerid, REJESTRACJA, DIALOG_STYLE_PASSWORD,"Rejestruj","Wybierz has?o aby si? zarejestowac","Zarejestruj","Anuluj");
}
return 1;
}

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 16:05


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Poka? +/- 20 linijek od linijki z b??dem. Kod dodawaj w tagu [code] lub [pawn].

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 16:31


EveY_







Wiek: 32
Na forum: 4595 dni
Posty: 29
Nick w MP: Przemo_CBN

Piwa: 10

Respekt: 50

Nie wiedzia?em sorki

od 59 Do 139 Linijki


Kod:


public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
if(classid == 0 || classid == 1 || classid == 2) //Kierowca
{
TextDrawHideForPlayer(playerid, TDKlasy[playerid]);
TextDrawSetString(TDKlasy[playerid],"Kierowca");
return 1;
}
else if(classid == 3 || classid == 4 || classid == 5) //Policja
{
TextDrawShowForPlayer(playerid,TDKlasy[playerid]);
TextDrawSetString(TDKlasy[playerid],"Policja");
return 1;
}
else if(classid == 6 || classid == 7 || classid == 8) //Medical
{
TextDrawShowForPlayer(playerid, TDKlasy[playerid]);
TextDrawSetString(TDKlasy[playerid],"Medical");
return 1;
}
else if(classid == 9 || classid == 10 || classid == 11) //PomocDrogowa
{
TextDrawShowForPlayer(playerid, TDKlasy[playerid]);
TextDrawSetString(TDKlasy[playerid],"PomocDrogowa");
return 1;
}
else if(classid == 12 || classid == 13 || classid == 14) //SG
{
TextDrawShowForPlayer(playerid, TDKlasy[playerid]);
TextDrawSetString(TDKlasy[playerid],"SG");
return 1;
}
return 1;
}
public OnPlayerConnect(playerid)
{
//Textdrawy
TDKlasy[playerid] = TextDrawCreate (190, 500,"_");
TextDrawColor(TDKlasy[playerid], Zielony);
TextDrawFont(TDKlasy[playerid], 1);
TextDrawSetOutline(TDKlasy[playerid], 1);
//
TextDrawShowForPlayer(playerid, Powitanie);
new Gracz [64];
new Gname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Gname,sizeof(Gname));
format(Gracz,sizeof(Gracz),"/Gracze/%s.txt",Gname);
if(dini_Exists(Gracz))
{
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD,"Login","Witaj na serwerze.\NPodaj haslo aby si? zalogowac","Login","Anuluj");
}
else
{
ShowPlayerDialog(playerid, REJESTRACJA, DIALOG_STYLE_PASSWORD,"Rejestruj","Wybierz has?o aby si? zarejestowac","Zarejestruj","Anuluj");
}
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Powitanie);
TextDrawHideForPlayer(playerid, TDKlasy[playerid]);

ZapisGracza(playerid);
return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Powitanie);
TextDrawHideForPlayer(playerid, TDKlasy);
WczytajGracza(playerid);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-18, 17:26


Avast99







Wiek: 28
Na forum: 4647 dni
Posty: 135
Nick w MP: Avast99

Piwa: 352

Respekt: 126
Respekt: 126

Nie \N tylko \n w dialogu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-19, 19:02


carl0987







Wiek: 37
Na forum: 4891 dni
Posty: 295
Nick w MP: Lolek

Piwa: 10

Respekt: 50

Zrobi?em tak:
na pocz?tku:
Pawn

new Float:loadX;
new Float:loadY;
new Float:loadZ;



potem:
Pawn
new spawn dini_Int(FileStats(playerid), "spawn");
        if(spawn == 1)
        {
        new loadid dini_Int(FileStats(playerid), "domid");
        loadX dini_Float(loadid"X");
        loadZ dini_Float(loadid"Y");
        loadY dini_Float(loadid"Y");
        GetPlayerPos(playeridloadXloadYloadZ);
        }


errory:
Kod:

C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2055) : error 035: argument type mismatch (argument 1)
C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2056) : error 035: argument type mismatch (argument 1)
C:\Users\ThePolishMoosePL\Desktop\Foldery\samp eco truck\et2014.pwn(2057) : error 035: argument type mismatch (argument 1)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-19, 19:23


Martynka1407







Wiek: 27
Na forum: 4208 dni
Posty: 6
Nick w MP: Martina_Wirkuen



Respekt: 50

Witam! Mam wielki problem! :( ?adna mapka honest nie chce mi odpali? na domowym serwerze, wszystko mam wgrane, wpisane w config. Pluginy s? razem z paczkami wi?c chyba powinny by? dobre... Ale gdy uruchamiam serwer ci?gle wyskakuje:

Kod:


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

SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[19]
[19] Server Plugins
[19] --------------
[19] Loading plugin: sscanf.dll
[19]

[19] ===============================

[19] sscanf plugin loaded.

[19] (c) 2009 Alex "Y_Less" Cole

[19] ===============================

[19] Loaded.
[19] Loading plugin: streamer.dll
[19]

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

[19] Loaded.
[19] Loading plugin: audio.dll
[19]

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

[19] Loaded.
[19] Loading plugin: fm.dll
[19] ******************
[19] ** FILE MANAGER **
[19] ** Loaded **
[19] ** Version 1.1 **
[19] ******************
[19] Loaded.
[19] Loading plugin: mysql.dll
[19] Failed.
[19] Loaded 4 plugins.

[19]
[19] Filterscripts
[19] ---------------
[19] Loading filterscript 'obiekty.amx'...
[19] Loading filterscript 'kregle.amx'...
[19] Loading filterscript 'bilard.amx'...
[19] Loaded 3 filterscripts.

[19] Script[gamemodes/honest.amx]: Run time error 19: "File or function is not found"
[19] Number of vehicle models: 0



Kompletnie tego nie rozumiem! Co si? dzieje... Dlaczego nie dzia?a, wszystko jest wgrane co wida?, scriptfiles tak?e mam wszystko wgrane. Specjalnie pobra?am wersje normaln? aby upewni? si? ?e nic nie dzia?a, ?adna mapka... Pomocy!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-19, 19:25


carl0987







Wiek: 37
Na forum: 4891 dni
Posty: 295
Nick w MP: Lolek

Piwa: 10

Respekt: 50

podaj server.cfg

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-19, 19:28


Martynka1407







Wiek: 27
Na forum: 4208 dni
Posty: 6
Nick w MP: Martina_Wirkuen



Respekt: 50

Kod:

echo Executing Server Config...
lanmode 0
rcon_password 123321
maxplayers 50
port 7777
hostname Honest
gamemode0 honest 1
filterscripts obiekty kregle bilard
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins sscanf.dll streamer.dll audio.dll fm.dll mysql.dll libmySQL.dll


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