Pomoc molim vas pocetnik :(

Započeo Transportercina, Mart 26, 2020, 02:18:31 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): (45421) : warning 209: function "cmd_vportvozilo" should return a value
Problem(error/warning): (45422) : error 010: invalid function or declaration
Dio skripte:[pawn]CMD:vportvozilo( playerid, params[] )
   if(PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
   if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes dok si u DM Zoni." );
   if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
   if( IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "Ne mozes iz auta." );
   if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok imas wanted level." );
   if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok si u zatvoru." );
   SPD(playerid,16120,DIALOG_STYLE_LIST, "VIP Port Vozila", "Auto 1\nAuto 2\nAuto 3\nAuto 4\nMotor\nLetelica\nPlovilo", "Port", "X");
}
   else return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
   return true;[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): Nista
HVala na pomoci <3!
Skripter On Duty
Developer on Insomnia Gaming[/size]

Nisi otvorio brackete na početku i zatvorio na kraju poslije return true.

[pawn]CMD:vportvozilo( playerid, params[] )
{
   if(PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
   if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes dok si u DM Zoni." );
   if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
   if( IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "Ne mozes iz auta." );
   if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok imas wanted level." );
   if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok si u zatvoru." );
   SPD(playerid,16120,DIALOG_STYLE_LIST, "VIP Port Vozila", "Auto 1\nAuto 2\nAuto 3\nAuto 4\nMotor\nLetelica\nPlovilo", "Port", "X");
 }
   else return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
   return true;
}[/pawn]
Poravnaj ti kod.
Nsmas brackete.
Vandals Project OGC
[size=11.25pt]Vandals Project OGC[/size][/font]
[/color]

Eto ovako ti mora bit

[pawn]CMD:vportvozilo( playerid, params[] )
{
   if(PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
      if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes dok si u DM Zoni." );
      if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
      if( IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "Ne mozes iz auta." );
      if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok imas wanted level." );
      if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok si u zatvoru." );
      SPD(playerid,16120,DIALOG_STYLE_LIST, "VIP Port Vozila", "Auto 1\nAuto 2\nAuto 3\nAuto 4\nMotor\nLetelica\nPlovilo", "Port", "X");
   } else return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
   return true;
}[/pawn]

Citat: Galardo poslato Mart 26, 2020, 03:14:44 PRE PODNE
Nisi otvorio brackete na početku i zatvorio na kraju poslije return true.
Hvalaa
Skripter On Duty
Developer on Insomnia Gaming[/size]

Citat: Skorpija_026 poslato Mart 26, 2020, 03:15:47 PRE PODNE
[pawn]CMD:vportvozilo( playerid, params[] )
{
   if(PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
   if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes dok si u DM Zoni." );
   if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
   if( IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "Ne mozes iz auta." );
   if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok imas wanted level." );
   if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok si u zatvoru." );
   SPD(playerid,16120,DIALOG_STYLE_LIST, "VIP Port Vozila", "Auto 1\nAuto 2\nAuto 3\nAuto 4\nMotor\nLetelica\nPlovilo", "Port", "X");
}
   else return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
   return true;
}[/pawn]
Poravnaj ti kod.
Nsmas brackete.
HVL
Skripter On Duty
Developer on Insomnia Gaming[/size]

Citat: Miki11 poslato Mart 26, 2020, 14:05:17 POSLE PODNE
Eto ovako ti mora bit

[pawn]CMD:vportvozilo( playerid, params[] )
{
   if(PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
      if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes dok si u DM Zoni." );
      if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
      if( IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "Ne mozes iz auta." );
      if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok imas wanted level." );
      if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes da portas auto dok si u zatvoru." );
      SPD(playerid,16120,DIALOG_STYLE_LIST, "VIP Port Vozila", "Auto 1\nAuto 2\nAuto 3\nAuto 4\nMotor\nLetelica\nPlovilo", "Port", "X");
   } else return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
   return true;
}[/pawn]
HAVLA
Skripter On Duty
Developer on Insomnia Gaming[/size]

HVALA SVIMAAAA <3

LOCK
Skripter On Duty
Developer on Insomnia Gaming[/size]