Warninzi

Započeo Martyn, April 02, 2020, 03:33:00 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Neki warninzi
Dio skripte: [pawn]1.protected BanLog(string[])
{
   return 1;
}
2.stock alertFriendsOnDisconnection(playerid){
   for(new i = 0; i < MAX_FRIENDS; i ++)
      if(Friends[playerid][serverid] != -1)
//         NotifyPlayer(Friends[playerid][serverid], 1, "", "", playerid);
   return 1;
}
[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(11063) : warning 203: symbol is never used: "string"
D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(71107) : warning 209: function "alertFriendsOnDisconnection" should return a value
D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(72138) : warning 203: symbol is never used: "NeaktivnostFirmi"
D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(72138) : warning 203: symbol is never used: "NeaktivnostGaraza"

Slika/video ingame problema(obavezno ako je ingame problem): //

D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(11063) : warning 203: symbol is never used: "string"

Ne koristis nigde 'String'.

D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(71107) : warning 209: function "alertFriendsOnDisconnection" should return a value

Ne treba return 1;

D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(72138) : warning 203: symbol is never used: "NeaktivnostFirmi"

Ne koristi NeaktivnostFirmi

D:\New folder (2)\ZGRPG\gamemodes\kararpg.pwn(72138) : warning 203: symbol is never used: "NeaktivnostGaraza"

Ne koristi NeaktivnostGaraza

[pawn]protected alertFriendsOnDisconnection(playerid)
{
   for(new i = 0; i < MAX_FRIENDS; i ++)
   {
      if(Friends[playerid][serverid] != -1)
       return 0;
   }
   return true;
}[/pawn]
btw ne znam dal ce ti funkcija raditi posle ovoga zato sto sam pocetnik
a NeaktivnostFirmi i Garaza ti je u nekom include a ne u glavnom pwn , a sad ne znam u kom tacno inc

a i linija koju si ti dao za string nije ban log vec debug log sam ga stavi pod funkciju

[pawn]protected debuglog(string[])
{
   return 1;
}[/pawn]
Poslednja Izmena: April 02, 2020, 05:30:35 PRE PODNE od 4323||Svabo