Pawn Cmd mi se nece includovati
Evo gde je problem:
C:\Users\HristijanPC\Desktop\Balkan Mega Update v1.1.1\Pawno\include\Pawn.CMD.inc(56) : error 025: function heading differs from prototype
C:\Users\HristijanPC\Desktop\Balkan Mega Update v1.1.1\Pawno\include\Pawn.CMD.inc(60) : error 025: function heading differs from prototype
#define GPS_FILE "GPS/%d.ini" << 56 linija
#define GZONE_FILE "Zone/GangZone_%i.ini" << 60 linija
Ako znate sta je problem recite molim vas HVALA UNAPRED!!
Jesi toliko retardiran i slep?
Vidi se da si osoba koja includea Pawn.CMD zbog 20 mikrosekundi.
[pawn]
#define GPS_FILE "GPS/%d.ini" << 56 linija
#define GZONE_FILE "Zone/GangZone_%i.ini" << 60 linija[/pawn]
Kakve veze ove linije imaju sa errorom?
Jasno piše da je error u PAWN.CMD.INC FAJLU slepče
Citat: Sage poslato Avgust 19, 2021, 23:22:48 POSLE PODNE
Jesi toliko retardiran i slep?
Vidi se da si osoba koja includea Pawn.CMD zbog 20 mikrosekundi.
[pawn]
#define GPS_FILE "GPS/%d.ini" << 56 linija
#define GZONE_FILE "Zone/GangZone_%i.ini" << 60 linija[/pawn]
Kakve veze ove linije imaju sa errorom?
Jasno piše da je error u PAWN.CMD.INC FAJLU slepče
Pa objasni
Citat: Nikeraco poslato Avgust 19, 2021, 23:26:36 POSLE PODNE
Pa objasni
Pa ispisana ti je lokacija gdje je error C:\Users\HristijanPC\Desktop\Balkan Mega Update v1.1.1\Pawno\include\Pawn.CMD.inc
ok otvorio sam ga i sta sad:
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 urShadow
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#if !defined PAWNCMD_INC_
#define PAWNCMD_INC_
#define PAWNCMD_INCLUDE_VERSION 314
#if !defined __cplusplus
public _pawncmd_version = PAWNCMD_INCLUDE_VERSION;
#pragma unused _pawncmd_version
public bool:_pawncmd_is_gamemode = !defined FILTERSCRIPT;
#pragma unused _pawncmd_is_gamemode
native PC_RegAlias(const cmd[], const alias[], ...);
native PC_SetFlags(const cmd[], flags);
native PC_GetFlags(const cmd[]);
native PC_EmulateCommand(playerid, const cmdtext[]);
native PC_RenameCommand(const cmd[], const newname[]);
native PC_CommandExists(const cmd[]);
native PC_DeleteCommand(const cmd[]);
native CmdArray:PC_GetCommandArray();
native CmdArray:PC_GetAliasArray(const cmd[]);
native PC_GetArraySize(CmdArray:arr);
native PC_FreeArray(&CmdArray:arr);
native PC_GetCommandName(CmdArray:arr, index, dest[], size = sizeof dest);
#if defined PC_OnInit
forward PC_OnInit();
#endif
#if defined OnPlayerCommandReceived
forward OnPlayerCommandReceived(playerid, cmd[], params[], flags);
#endif
#if defined OnPlayerCommandPerformed
forward OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags);
#endif
#define cmd:%0(%1) \
forward pc_cmd_%0(%1); \
public pc_cmd_%0(%1)
#define alias:%0(%1); \
forward pc_alias_%0(); \
public pc_alias_%0() \
PC_RegAlias(#%0, %1);
#define flags:%0(%1); \
forward pc_flags_%0(); \
public pc_flags_%0() \
PC_SetFlags(#%0, %1);
#define CMD cmd
#define COMMAND cmd
#define callcmd::%0(%1) \
pc_cmd_%0(%1)
#define PC_HasFlag(%0,%1) \
(PC_GetFlags(%0) & %1)
#if !defined isnull
#define isnull(%0) \
((!(%0[0])) || (((%0[0]) == '\1') && (!(%0[1]))))
#endif
#endif
#endif // PAWNCMD_INC_
Verovatno ti fale parametri na OnPlayerCommandReceived i OnPlayerCommandPerformed
Citat: Hayamoto poslato Avgust 19, 2021, 23:45:19 POSLE PODNE
Verovatno ti fale parametri na OnPlayerCommandReceived i OnPlayerCommandPerformed
Upravo to.
nije to ima ga
Bukvalno ti kaže da pogrešno koristiš Pawn.CMD callbackove u modu, ako toliko ne znaš samo izađi i ostavi skriptu.
Fixao sam dok sam fixao prociao majcino mleko tri puta ;)
Lock.