Szerző Téma: Itt kérdezz warningot/error -t!  (Megtekintve 124925 alkalommal)

Itt kérdezz warningot/error -t!
« Válasz #1185 Dátum: 2016. Május 21. - 18:18:51 »
0
return true;
return 0;
????  :shocking:

Nem elérhető whadez

  • 719
  • DEFEATER
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1186 Dátum: 2016. Május 21. - 18:58:20 »
0
A return true-t töröld ki, ha nincs filterscripted ami használja ezt a függvényt, vagy a return 0;-t, ha van. Gondolkozz. return -> visszatérési érték.
true / false = boolean érték. Ha egyszer visszatért az érték egy függvényen belül, nem megy tovább a script. Ezért van az ha return 1; alá írsz dolgokat, azok nem fognak lefutni, ha nincsenek elágazások.  :shurg: GONDOLKOZZ ELITE TESÓM!  :-[

Nem elérhető éncsakidefeljarok

  • 15
  • Discord: csattos
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1187 Dátum: 2016. Május 21. - 21:49:07 »
0
Sziasztok
Mi lehet a problema?
 
YSI\\y_debug.inc(368) : error 036: empty statemen0
fixes.inc(2880) : error 036: empty statementt
YSI\\y_amx.inc(373) : error 036: empty statement
YSI\\y_debug.inc(368) : error 036: empty statement

Itt kérdezz warningot/error -t!
« Válasz #1188 Dátum: 2016. Május 23. - 16:02:23 »
0
 Sziasztok 
Mi lehet a problema?
YSI\\y_debug.inc(368) : error 036: empty statemen0
fixes.inc(2880) : error 036: empty statementt
YSI\\y_amx.inc(373) : error 036: empty statement
YSI\\y_debug.inc(368) : error 036: empty statement

 
Cseréld ki az inc fájlokat.

Itt kérdezz warningot/error -t!
« Válasz #1189 Dátum: 2016. Május 24. - 18:31:58 »
0
C:\\Users\\Sipos Péter\\Desktop\\Minden\\Samp\\pawno\\include\\sscanf2.inc(28) : fatal error 111: user error: sscanf (possibly the PAWN version) already defined.
 
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
1 Error.

 
Itt most mi a franc van? :D
E:és az include -ok:
 
#include zcmd
#include sscanf2
#include a_samp

Nem elérhető divkn

  • 3259
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1190 Dátum: 2016. Május 24. - 18:54:15 »
0
Valahol a kódodban már definiálva van a szkript verziós sscanf, nem pedig a pluginos.
« Utoljára szerkesztve: 2016. Május 24. - 19:04:05 írta divkn »

Itt kérdezz warningot/error -t!
« Válasz #1191 Dátum: 2016. Május 26. - 21:36:39 »
0
Hali ez miért van?
 
RRPG4615.pwn(12873) : error 021: symbol already defined: \"OPVD_OnPlayerStateChange\"

 
Eddig ez nem volt, csak miután a pawnomat újraraktam.
a sor
public OnPlayerStateChange( playerid, newstate, oldstate )

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1192 Dátum: 2016. Május 28. - 18:52:49 »
0
töröld a 12873 sort.

Itt kérdezz warningot/error -t!
« Válasz #1193 Dátum: 2016. Május 28. - 21:53:48 »
0
megnézem mindjárt, előre is köszi

Nem elérhető Kukcy

Itt kérdezz warningot/error -t!
« Válasz #1194 Dátum: 2016. Június 02. - 16:19:12 »
0
E:\\TFM\\szkapu.pwn(22) : error 017: undefined symbol \"PlayerInfo\"
E:\\TFM\\szkapu.pwn(22) : warning 215: expression has no effect
E:\\TFM\\szkapu.pwn(22) : error 001: expected token: \";\", but found \"]\"
E:\\TFM\\szkapu.pwn(22) : error 029: invalid expression, assumed zero
E:\\TFM\\szkapu.pwn(22) : 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.

 

#include<a_samp>
#include<sscanf>
#include<streamer>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new kapu;
public OnFilterScriptInit()
{
        kapu = CreateDynamicObject(16501, 7.96390, 2452.23828, 17.70760,   359.90601, 0.00000, 90.00560);
        return 1;
}
 
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0)
        {
                if(PlayerInfo[playerid][pLeader] != 17 || PlayerInfo[playerid][pMember] != 17)
                        return SendClientMessage(playerid, -1, \"Nem haszálhatod a parancsot!\");
                if(!IsPlayerInRangeOfPoint(playerid, 4.0, 7.96390, 2452.23828, 17.70760))
                        return SendClientMessage(playerid, -1, \"Nem vagy a kapu közelében!\");
        MoveDynamicObject(kapu,7.96390, 2452.23828, 13.20760,2.0);
                return 1;
        }
        if(strcmp(cmdtext, \"/kapu-zar\", true) == 0)
        {
                if(PlayerInfo[playerid][pLeader] != 17 || PlayerInfo[playerid][pMember] != 17)
                        return SendClientMessage(playerid, -1, \"Nem haszálhatod a parancsot!\");
                if(!IsPlayerInRangeOfPoint(playerid, 4.0, 7.96390, 2452.23828, 17.70760))
                        return SendClientMessage(playerid, -1, \"Nem vagy a kapu közelében!\");
                MoveDynamicObject(kapu,7.9639, 2452.2343, 17.7060,2.0);
                return 1;
        }
        return 0;
}

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1195 Dátum: 2016. Június 02. - 16:42:06 »
0
Tedd bele a módba hogy használni tudja a frakció és akkor nem lesz erroros

Nem elérhető Kukcy

Itt kérdezz warningot/error -t!
« Válasz #1196 Dátum: 2016. Június 02. - 16:58:43 »
0
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(2846) : error 021: symbol already defined: \"sscanf\"
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(63884) : error 021: symbol already defined: \"OnPlayerCommandText\"
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(63891) : warning 217: loose indentation
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(63892) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 

2 Errors.

 

2846 stock sscanf(string[], format[], {Float,_}:...)
{
63884 public OnPlayerCommandText(playerid, cmdtext[])
{
63891         MoveDynamicObject(kapu,7.96390, 2452.23828, 13.20760,2.0);
63892                return 1;
« Utoljára szerkesztve: 2016. Június 02. - 17:29:08 írta Kukcy »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1197 Dátum: 2016. Június 02. - 17:47:31 »
0
Sor már létezik 2x van benne a módban

Nem elérhető Kukcy

Itt kérdezz warningot/error -t!
« Válasz #1198 Dátum: 2016. Június 02. - 17:51:05 »
0
Melyik sor ?

Dupla hozzászólás automatikusan összefûzve. ( 2016. Június 02. - 18:07:39 )

Már csak 2 hiba
 
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(2846) : error 021: symbol already defined: \"sscanf\"
E:\\TFM\\Szerver\\SAMP\\gamemodes\\samp.pwn(63884) : error 021: symbol already defined: \"OnPlayerCommandText\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
2 Errors.
« Utoljára szerkesztve: 2016. Június 02. - 18:07:39 írta Kukcy »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1199 Dátum: 2016. Június 02. - 19:07:52 »
0
OnPlayerCommandText van a módba

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal