[POMOC]ClearChat CC EROR

Započeo F![L]!P, Avgust 15, 2012, 15:31:13 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

Skripta Koju Koristim: DWRP
Opis Problema: Pa nemozam da napravam komanda clear chat mi dava erori go stavam pod on player connect
Dio Skripte: /---------------------------[cc]---------------------------------------------------------
   if(!strcmp(cmdtext, "/cc", true))
    {
       if(PlayerInfo[playerid][pAdmin] >= 1)
       {
         for(new chat = 0; chat <= 50; chat++) SendClientMessageToAll(COLOR_GREEN, " ");
         GetPlayerName(playerid, sendername, 20);
           format(string, 256, "Administrator {FFFFFF}%s {00C0FF}go iscisti chatot.", sendername);
          SendClientMessageToAll(COLOR_LIGHTBLUE, string);
          SendClientMessageToAll(ORANGE, "dreamteamrpgmk.tk.");
          return 1;
      }
       else SendClientMessage(playerid, COLOR_RED, "Ne si Admin.");
       return 1;
    }



EROR:


D:\SA-MP\gamemodes\DWRPG1.pwn(242) : error 017: undefined symbol "PlayerInfo"
D:\SA-MP\gamemodes\DWRPG1.pwn(242) : warning 215: expression has no effect
D:\SA-MP\gamemodes\DWRPG1.pwn(242) : error 001: expected token: ";", but found "]"
D:\SA-MP\gamemodes\DWRPG1.pwn(242) : error 029: invalid expression, assumed zero
D:\SA-MP\gamemodes\DWRPG1.pwn(242) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
F![L]!P 550

Citat: |MadDog| poslato Avgust 15, 2012, 15:38:19 POSLE PODNE
To ti ne ide pod OnPlayerConnect nego pod
public OnPlayerCommandText(playerid, cmdtext[])


zgresio sam,nego go stavam pod on palyer command text,no nebiva  :( :( :( :( Ve moli vas pomoc
F![L]!P 550

Citat: |MadDog| poslato Avgust 15, 2012, 15:42:29 POSLE PODNE
daj mi neku drugu komandu iz tvog GMa samo da vidim nesto

ma daj pomozi mi nemoj da spamas.. ako znas pomozi mi ako ne nemoj da spamas!
F![L]!P 550

Citat: |MadDog| poslato Avgust 15, 2012, 15:45:49 POSLE PODNE
vjerovatno ti je drugacije napisano "PlayerInfo" u ostalim komandama pa sam zato trazio drugu komandu da vidim!!!!!

if(!strcmp(cmdtext, "/clearchat", true) || !strcmp(cmdtext, "/cc", true))
   {
        if (PlayerInfo[playerid][pAdmin] >= 1)
       {
          for(new chat = 0; chat <= 100; chat++)
          SendClientMessageToAll(ZELENKASTA, " ");
          GetPlayerName(playerid, sendername, 20);
           format(string, 256, "Adminitrator {FFFFFF}%s {00C0FF}go iscisti chatot.", sendername);
          SendClientMessageToAll(COLOR_LIGHTBLUE, string);
          SendClientMessageToAll(COLOR_ORANGE, "www.[Цензура]-game.tk{00C0FF}.");
          return 1;
      }
      else
      {
          SendClientMessage(playerid, WHITE, ""COL_RED"{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
        }
        return 1;
   }
F![L]!P 550

posto vidim da pravis mod od 0 a nisi uradio enum za playerinfo stavi ovako dok neuradis enum
   if(!strcmp(cmdtext, "/cc", true))
    {
        if(IsPlayerAdmin(playerid))
       {
          for(new chat = 0; chat <= 100; chat++) SendClientMessageToAll(0x33AA33AA, " ");
          GetPlayerName(playerid, sendername, 20);
           format(string, 256, "Adminitrator {FFFFFF}%s {00C0FF}go iscisti chatot.", sendername);
          SendClientMessageToAll(0x33CCFFAA, string);
          SendClientMessageToAll(0xFF9900AA, "www.[Цензура]-game.tk{00C0FF}.");
          return 1;
      }
      else
      {
          SendClientMessage(playerid,0xAA3333AA,"{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
        }
        return 1;
   }
Poslednja Izmena: Avgust 15, 2012, 16:04:04 POSLE PODNE od [DV]Teske

sega pak 3 erori


D:\SA-MP\gamemodes\DWRPG1.pwn(265) : error 017: undefined symbol "sendername"
D:\SA-MP\gamemodes\DWRPG1.pwn(266) : warning 217: loose indentation
D:\SA-MP\gamemodes\DWRPG1.pwn(266) : error 017: undefined symbol "string"
D:\SA-MP\gamemodes\DWRPG1.pwn(267) : warning 217: loose indentation
D:\SA-MP\gamemodes\DWRPG1.pwn(267) : error 017: undefined symbol "string"
D:\SA-MP\gamemodes\DWRPG1.pwn(271) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.



Ako imate Team Viever kazete mi ke vi dadam ip i pass da mi napravite komandu,,
F![L]!P 550

if(!strcmp(cmdtext, "/cc", true))
{
        if(IsPlayerAdmin(playerid))
        {
          new string[250],sendername[MAX_PLAYER_NAME];
          for(new chat = 0; chat <= 100; chat++) SendClientMessageToAll(0x33AA33AA, " ");
          GetPlayerName(playerid, sendername, 20);
           format(string, 256, "Adminitrator {FFFFFF}%s {00C0FF}go iscisti chatot.", sendername);
          SendClientMessageToAll(0x33CCFFAA, string);
          SendClientMessageToAll(0xFF9900AA, "www.[Цензура]-game.tk{00C0FF}.");
          return 1;
        }
        else
        {
          SendClientMessage(playerid,0xAA3333AA,"{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
        }
        return 1;
}

samo moras biti logovan pod rcon
Poslednja Izmena: Avgust 15, 2012, 16:07:46 POSLE PODNE od [DV]Teske

D:\SA-MP\gamemodes\DWRPG1.pwn(268) : warning 217: loose indentation
D:\SA-MP\gamemodes\DWRPG1.pwn(269) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.



imam uste 2 warninzi ako moze i za ovo i se ke bide u redu
Poslednja Izmena: Avgust 15, 2012, 16:12:40 POSLE PODNE od F![L]!P
F![L]!P 550

if(!strcmp(cmdtext, "/cc", true))
{
if(IsPlayerAdmin(playerid))
{
new string[250],sendername[MAX_PLAYER_NAME];
for(new chat = 0; chat <= 100; chat++) SendClientMessageToAll(0x33AA33AA, " ");
GetPlayerName(playerid, sendername, 20);
format(string, 256, "Adminitrator {FFFFFF}%s {00C0FF}go iscisti chatot.", sendername);
SendClientMessageToAll(0x33CCFFAA, string);
SendClientMessageToAll(0xFF9900AA, "www.[Цензура]-game.tk{00C0FF}.");
return 1;
}
else
{
SendClientMessage(playerid,0xAA3333AA,"{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
}
return 1;
}

Sad nece sigurno samo moras biti logovan pod rcon dok neuradis enum :D

FALAAAAAAAAAAAAAAAAAAAAAAAAA VI ZA SVE AKO VI TREBA POMOC NESTO OD MENE KAZETE MI SLOBODNO IMAM I MNOGU FS!


LOCK NA TEMA

POZDRAV DO VAS.,.
F![L]!P 550