Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Scripterijum poslato Februar 15, 2018, 18:41:57 POSLE PODNE

Naslov: error 025: function heading differs from prototype
Poruka od: Scripterijum poslato Februar 15, 2018, 18:41:57 POSLE PODNE
Detaljan opis problema:Dobijam ovaj error 025: function heading differs from prototype na dve linije koje cu vam dati ispod.I stavi cu vam glavu u kofu dok ne prestanete da se ritate ako mi kazete
da odem na ovaj link http://forum.sa-mp.com/showthread.php?t=488198 .Pokusao sam resiti problem iz te teme i uspeo samo samo za onaj prvi impl.inc koji se nalazi u y_als ali kada odem u y_hooks i u taj impl.inc i krenem traziti redove preko Ctrl+F ali kaze da to sto trazim ne postoji u tom impl.in u y_hooks NE postoji.I nisam glup,znam engleski.Pretrazivao sam onaj red koji pise ispod Find ne ispod
change to.
Dio skripte:
errori

C:\Users\Veljko\Desktop\New Experience RolePlay\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(180) : error 025: function heading differs from prototype
C:\Users\Veljko\Desktop\New Experience RolePlay\gamemodes\nerp.pwn(1091) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

linija 180:
[pawn]
new Float:RandomPlSpawn[ 7 ][ 3 ] =
[/pawn]

linija 1091:
[pawn]
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
[/pawn]
includeovi:
[pawn]
#include < a_samp >
#include < core >
#include < float >
#include < string >
#include < file >
#include < time >
#include < datagram >
#include < a_players >
#include < a_vehicles >
#include < a_objects >
#include < a_sampdb >
#include < morphinc >
#include < foreach >
#include < streamer >
#include < YSI\y_ini >
#include < YSI\y_commands >
#include < sscanf2 >
[/pawn]
Imam sve definisano sto treba tako da me ne pitajte za to osim ukoliko ste bas zapeli pa mislite na neznam sta treba definisati i gde. :D
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Balsa. poslato Februar 15, 2018, 18:43:59 POSLE PODNE
Nemojte srati samo ću probat da pomognem
Ja msm da ycmd ne treba biti i nijednom publicu
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Scripterijum poslato Februar 15, 2018, 18:45:24 POSLE PODNE
Kako to mislis?
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Scripterijum poslato Februar 15, 2018, 19:49:39 POSLE PODNE
Evo ako treba ceo RandomSpawn i OnPlayerCommandPerformed
[pawn]
new Float:RandomPlSpawn[ 7 ][ 3 ] =
{
   { 1721.1152, -1629.8604, 20.2139 },
   { 1728.9758, -1631.7955, 20.2148 },
   { 1727.9707, -1630.0183, 20.2140 },
   { 1725.1711, -1629.3412, 20.2136 },
   { 1723.4401, -1627.8983, 20.2129 },
   { 1721.3381, -1629.3868, 20.2137 },
   { 1719.1368,-1635.0892,20.2092 }
};
[/pawn]
[pawn]
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
   if ( isnull( cmdtext ) )
   {
    // You can add other crash detect/warning code here.
       return 0;
   }
    if( !success ) //return SCM( playerid,-1,""col_larp"(SA:MP) "col_crvena"Upisali ste komandu koja ne postoji, upisite /help za listu komandi." );
    {
      PlayerPlaySound( playerid, 1055,0.0,0.0,0.0 );
      TDHFP( playerid, PogresnaCMD[ 0 ] );
        TDHFP( playerid, PogresnaCMD[ 1 ] );
      TDSFP( playerid, PogresnaCMD[ 0 ] );
        TDSFP( playerid, PogresnaCMD[ 1 ] );
        SetTimerEx( "MicanjeCMD",4000, false, "i", playerid );
   }
   new string[ 128 ]; format( string,sizeof( string ),"Igrac %s | Komanda: %s",GetName( playerid ),cmdtext ); LogKomandi( string );
   return ( true );
}
[/pawn]
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: // xunder poslato Februar 15, 2018, 19:57:03 POSLE PODNE
Koristi ovaj ysi https://github.com/Southclaws/YSI-3.1
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Scripterijum poslato Februar 15, 2018, 20:33:42 POSLE PODNE
Joj hvala ti.NAJ SI.CARINOO!!!Samo imam problem.Svaki put kada udjem na server i ukucam jednu komandu server se crasha posle toga,evo loga.

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[20:29:25]
[20:29:25] Server Plugins
[20:29:25] --------------
[20:29:25]  Loading plugin: streamer
[20:29:25]

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

[20:29:25]   Loaded.
[20:29:25]  Loading plugin: sscanf
[20:29:25]

[20:29:25]  ===============================

[20:29:25]       sscanf plugin loaded.     

[20:29:25]    (c) 2009 Alex "Y_Less" Cole

[20:29:25]    0.3d-R2 500 Players "dnee"

[20:29:25]  ===============================

[20:29:25]   Loaded.
[20:29:25]  Loading plugin: iTD
[20:29:25]
* iTD Plugin loaded. (Support for textdraw editor mouse/keyboard)

[20:29:25]   Loaded.
[20:29:25]  Loaded 3 plugins.

[20:29:25]
[20:29:25] Filterscripts
[20:29:25] ---------------
[20:29:25]   Loading filterscript 'ITDe.amx'...
[20:29:25]
iPLEOMAX's TextDraw Editor loaded successfully!
Version: 1.16 Stable (13/10/2012)

[20:29:25]   Loaded 1 filterscripts.

[20:29:25] 
[20:29:25] 
[20:29:25] 
[20:29:25]  =======================================
[20:29:25]  |                                     |
[20:29:25]  |        YSI version 3.09.0684        |
[20:29:25]  |        By Alex "Y_Less" Cole        |
[20:29:25]  |                                     |
[20:29:25]  =======================================
[20:29:25] 
[20:29:25] 
[20:29:25] 
[20:29:25] Number of vehicle models: 0
[20:29:47] [connection] 127.0.0.1:52299 requests connection cookie.
[20:29:48] [connection] incoming connection: 127.0.0.1:52299 id: 0
[20:29:48] [join] Veljko has joined the server (0:127.0.0.1)
[20:29:48] Textdraws loaded!

Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Scripterijum poslato Februar 15, 2018, 20:39:28 POSLE PODNE
Nista brate,HVALA TI DO NEBA.Naj forum.Resio sam problem,zaboravio da napravim folder Konfiguracija u kojem se nalazi Log Komandi pa se zato crashovalo,moze katance.
Naslov: Odg: error 025: function heading differs from prototype
Poruka od: Łuk@ poslato Februar 16, 2018, 22:16:56 POSLE PODNE
al krsis pravila eh, lock