[POMOC] pawno warninzi!

Započeo Jukyâ„¢, Jul 22, 2011, 18:19:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:kako da se rijesim ovih warninga trebam pomoc.
Dio skripte:C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(41) : warning 201: redefinition of constant/macro (symbol "MAX_PING")
C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(51718) : warning 235: public function lacks forward declaration (symbol "PlayerSpawn")
C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(54052) : warning 235: public function lacks forward declaration (symbol "PlayerUpdate")
C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(54889) : warning 235: public function lacks forward declaration (symbol "PlayerDisconnect")
C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(54892) : warning 235: public function lacks forward declaration (symbol "PlayerText")
C:\Users\Jure\Desktop\Los Santos Rol3play by Juky\gamemodes\LSRP.pwn(54928) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.
(41)#define MAX_PING 500
(51718):public PlayerSpawn(playerid)
{
  TextDrawShowForPlayer(playerid, ShadowsRandom);
  return 1;
}
(54052):public PlayerUpdate(playerid)
{
  new string[128], string2[256];
  new PlayerName[16];
  GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  if(GetPlayerPing(playerid) >= MAX_PING)
  {
     format(string, sizeof(string), "%s je kick-an sa servera. Razlog - Visok ping %d", PlayerName, MAX_PING);
     SendClientMessageToAll(0xAA3333AA, string);
      format(string2, sizeof(string2), "Kick-an si sa servera. Razlog - Visok ping %d", MAX_PING);
     SendClientMessage(playerid,0xAA3333AA, string2);
      Kick(playerid);
  }
  return 1;
}
(54889):public PlayerDisconnect(playerid, reason){
  swearCount[playerid] = 0;
}
(54892):public PlayerText(playerid, text[])
{
  if((strlen(text) < 3) || (text[0] == '/') || (text[0] == '#') || (text[0] == '!')) return 1;

  new offset;
  new len;
   for(new i=0; i<MAX_WORDS; i++)
  {
     offset = strfind(text, swear, true);
     if(offset > -1)
     {
        len = strlen(swear);
        if(len < 3) break;
        for(new y=0; y<len; y++)
        {
           text[offset+y] = '*';
        }
(54928):u skripti mi ima do 54927?

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Jul 22, 2011, 18:33:01 POSLE PODNE od Juky
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum

cristiane

Hoćeš ti ban? Nauči čitati pa onda otvaraj teme.
Citat: Soprano poslato Avgust 17, 2010, 19:54:02 POSLE PODNE

  • Svaka tema mora sadrzavati prefix [Pomoc] ili [Savjet] ovisno da li trebate pomoc ili pitate samo za savjet.

public OnPlayerSpawn(playerid)
{
   TextDrawShowForPlayer(playerid, ShadowsRandom);
   return 1;
}




public OnPlayerUpdate(playerid)
{
   new string[128], string2[256];
   new PlayerName[16];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
   if(GetPlayerPing(playerid) >= MAX_PING)
   {
      format(string, sizeof(string), "%s je kick-an sa servera. Razlog - Visok ping %d", PlayerName, MAX_PING);
      SendClientMessageToAll(0xAA3333AA, string);
      format(string2, sizeof(string2), "Kick-an si sa servera. Razlog - Visok ping %d", MAX_PING);
      SendClientMessage(playerid,0xAA3333AA, string2);
      Kick(playerid);
   }
   return 1;
}




public OnPlayerDisconnect(playerid, reason)
{
   swearCount[playerid] = 0;
}




public OnPlayerText(playerid, text[])
{
   if((strlen(text) < 3) || (text[0] == '/') || (text[0] == '#') || (text[0] == '!')) return 1;

   new offset;
   new len;
    for(new i=0; i<MAX_WORDS; i++)
   {
      offset = strfind(text, swear, true);
      if(offset > -1)
      {
         len = strlen(swear);
         if(len < 3) break;
         for(new y=0; y<len; y++)
         {
            text[offset+y] = '*';
         }





: warning 203: symbol is never used: "msg"
CTRL+F nadji "msg" i obrisi tu liniju.

Al kad dodam (on) onda mi bude error. :'(
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum

Citat: Juky poslato Jul 22, 2011, 20:55:41 POSLE PODNE
Al kad dodam (on) onda mi bude error. :'(
pa daj te errore. Ne moze bez "On"

D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(41) : warning 201: redefinition of constant/macro (symbol "MAX_PING")
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(51719) : error 021: symbol already defined: "JB_OnPlayerSpawn"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54053) : error 021: symbol already defined: "OnPlayerUpdate"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54889) : error 021: symbol already defined: "JB_OnPlayerDisconnect"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54893) : error 021: symbol already defined: "JB_OnPlayerText"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54928) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum

samo procitaj, vec ti je definirano to ;)
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: Juky poslato Jul 23, 2011, 19:50:07 POSLE PODNE
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(41) : warning 201: redefinition of constant/macro (symbol "MAX_PING")
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(51719) : error 021: symbol already defined: "JB_OnPlayerSpawn"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54053) : error 021: symbol already defined: "OnPlayerUpdate"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54889) : error 021: symbol already defined: "JB_OnPlayerDisconnect"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54893) : error 021: symbol already defined: "JB_OnPlayerText"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54928) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Na pocetku, include <JunkBuster> jer imas to?
Ako nemas dodaj i radice ti

Ako nemas na vrh skripte #include <junkbuster>, onda dodaj to.

Ako imas, onda skini ponovo JunkBuster i ponovo sve lepo ubaci i radice ti.

Imao san include <JunkBuster> i ponovno sam sve stavio i opet nije radilo onda sam ga odlucio izbrisati kad sam ga izbrisao iz include i sriptfilesa onda su mi se pojavili errori ono JB_GivePlayer onda sam sve te ispred pobrisao (JB_) pa mi sad izbaci nesto drugo nevezano sa tim


D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(51718) : error 021: symbol already defined: "OnPlayerSpawn"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54052) : error 021: symbol already defined: "OnPlayerUpdate"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54888) : error 021: symbol already defined: "Itter_OnPlayerDisconnect"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54892) : error 021: symbol already defined: "EUM_OnPlayerText"
D:\NE DIRAJ!!!!!!!\Modern Rol3Play\gamemodes\modernrp.pwn(54927) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 ::)
Poslednja Izmena: Jul 24, 2011, 17:05:24 POSLE PODNE od Juky
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum