Zaključano

SetChatBubble Pomocc

pre 4 godine
1,258
pregleda
24
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Fergosonn
Made Man
pre 4 godine
task ChatDouble()
{
foreach(Player,i)
{
if(PlayerInfo == 1)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 1 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 2)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 2 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 3)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 3 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 4)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 4 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 5)
{
SetPlayerChatBubble(i, "[ Master Donator ]", 0xAA3333AA, 30.0,60000);
}
}
return 1;
}

Probaj ovo
Dime123
Made Man
pre 4 godine
Fergosonn wrote on August 20, 2021, 1:39 pm:
task ChatDouble()
{
foreach(Player,i)
{
if(PlayerInfo == 1)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 1 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 2)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 2 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 3)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 3 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 4)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 4 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 5)
{
SetPlayerChatBubble(i, "[ Master Donator ]", 0xAA3333AA, 30.0,60000);
}
}
return 1;
}

Probaj ovo

To sam mu i ja reko bez ELSE da uradi zato mu izbacuje gresku
skriptergodine
Wheel Man
pre 4 godine
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1011) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1013) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1015) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1019) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1023) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1027) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1031) : error 010: invalid function or declaration
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1036) : error 010: invalid function or declaration
Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase

8 Errors.
IDALJE IZBACUJE JEBENU DEKLARACAIJU JEBEM TI SKRIPTU I FAMILIJU ONOME KO JE NAPRAVI
skriptergodine
Wheel Man
pre 4 godine
a kad probam preko Forward-a i Publica izbacuje error nedefinisano I a upisao for(new i = 0; i < MAX_PLAYERS; i++); ali kad upisem foreach(Player, i) izbacuje errore neke YSI kurcevi palcevi itd
Fergosonn
Made Man
pre 4 godine
skriptergodine wrote on August 20, 2021, 2:08 pm:
a kad probam preko Forward-a i Publica izbacuje error nedefinisano I a upisao for(new i = 0; i < MAX_PLAYERS; i++); ali kad upisem foreach(Player, i) izbacuje errore neke YSI kurcevi palcevi itd

Daj ceo kod od pocetka do kraja i erore
skriptergodine
Wheel Man
pre 4 godine
forward ChatBubble();
public ChatBubble()
{
new i = 0; i < MAX_PLAYERS; i++

foreach(Player,i)
{
if(PlayerInfo == 1)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 1 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 2)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 2 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 3)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 3 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 4)
{
SetPlayerChatBubble(i, "[ VIP LEVEL 4 ]", 0xAA3333AA, 30.0,60000);
}
if(PlayerInfo == 5)
{
SetPlayerChatBubble(i, "[ Master Donator ]", 0xAA3333AA, 30.0,60000);
}
}
return 1;
}

C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1014) : warning 215: expression has no effect
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1016) : error 001: expected token: ";", but found "for"
C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1016) : warning 219: local variable "i" shadows a variable at a preceding level
Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
skriptergodine
Wheel Man
pre 4 godine
Fixao sam sve errore ostao je ovaj warning

C:\Users\pogan\OneDrive\Desktop\Server\Skripta-Mod\gamemodes\pcrp.pwn(1016) : warning 219: local variable "i" shadows a variable at a preceding level
Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase

Header size:          5364 bytes
Code size:          166752 bytes
Data size:        16940480 bytes
Stack/heap size:      16384 bytes; estimated max. usage=1065 cells (4260 bytes)
Total requirements:17128980 bytes

1 Warning.           

Tu je inace foreach(Player, i)
Fergosonn
Made Man
pre 4 godine
forward ChatBubble();
public ChatBubble()
{
  foreach(Player,i)
  {
      if(PlayerInfo == 1)
      {
        SetPlayerChatBubble(i, "[ VIP LEVEL 1 ]", 0xAA3333AA, 30.0,60000);
      }
      if(PlayerInfo)
      {
        SetPlayerChatBubble(i, "[ VIP LEVEL 2 ]", 0xAA3333AA, 30.0,60000);
      }
      if(PlayerInfo == 3)
      {
        SetPlayerChatBubble(i, "[ VIP LEVEL 3 ]", 0xAA3333AA, 30.0,60000);
      }
      if(PlayerInfo == 4)
      {
        SetPlayerChatBubble(i, "[ VIP LEVEL 4 ]", 0xAA3333AA, 30.0,60000);
      }
      if(PlayerInfo == 5)
      {
        SetPlayerChatBubble(i, "[ Master Donator ]", 0xAA3333AA, 30.0,60000);
      }
  }
  return 1;
}

evo ispravno nije mi dalo nit warninge nit ista
skriptergodine
Wheel Man
pre 4 godine
tjt HVALA VAAAAAAAAAAAAAAAAAM LOCK

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava