Pomoc

Započeo [IF] mariomako, Jun 23, 2010, 13:48:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Kako na ovaj kod da dodadem nesto ovakvo:

(Taj i taj igrac) je baniran.
primer: Mario_Montana je baniran. ?

public macjetpack(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
        SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
        Ban(playerid);
    }
    return 1;
}

probaj nekako kao kada upises na serveru /ban ID
onda kaze ono Admin Aleluja je banao igraca Mario razlog CIt
jel to mislis ako je to on da kopiraj iz gamemode mozda ce ti raditi nisam siguran ...

Citat: Mario Velickovski poslato Jun 23, 2010, 13:48:55 POSLE PODNE
Kako na ovaj kod da dodadem nesto ovakvo:

(Taj i taj igrac) je baniran.
primer: Mario_Montana je baniran. ?

public macjetpack(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
        SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
        Ban(playerid);
    }
    return 1;
}

public macjetpack(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
        SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
        format(string, sizeof(string), "  Igrac %s, banovan.", giveplayer);
SendClientMessageToAll(playerid, COLOR_GRAD3, string);
        Ban(playerid);
    }
    return 1;
}

Probaj vako   ;) ;) ;)

Citat: Elvis_Elix poslato Jun 23, 2010, 14:32:27 POSLE PODNE
Citat: Mario Velickovski poslato Jun 23, 2010, 13:48:55 POSLE PODNE
Kako na ovaj kod da dodadem nesto ovakvo:

(Taj i taj igrac) je baniran.
primer: Mario_Montana je baniran. ?

public macjetpack(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
        SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
        Ban(playerid);
    }
    return 1;
}

public macjetpack(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
        SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
        format(string, sizeof(string), "  Igrac %s, banovan.", giveplayer);
SendClientMessageToAll(playerid, COLOR_GRAD3, string);
        Ban(playerid);
    }
    return 1;
}

Probaj vako   ;) ;) ;)

nalazi mi sledece errore

C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(22) : error 017: undefined symbol "string"
C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(22) : error 017: undefined symbol "string"
C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(22) : fatal error 107: too many error messages on one line

jel je filterskripta zato mi nalazi a gde da definiram taj string?


nastoe

Citat: Elvis_Elix poslato Jun 23, 2010, 15:36:11 POSLE PODNE
dodaj new string[128];
128  :o za to sta on koristi dovoljno mu je 64 new string[64];

public macjetpack(playerid)
{
   if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
   {
       new string[64];
       SendClientMessage(playerid, COLOR_RED, "[ Macedonian Anti Cheat ]");
       SendClientMessage(playerid, COLOR_RED, "Vie ste banirani poradi koristenje na JetPack.");
       format(string, sizeof(string), "  Igrac %s, banovan.", playerid);
SendClientMessageToAll(COLOR_GRAD3, string);
       BanEx(playerid,"Jackpack");
   }
   return 1;
}


Stavio sam ti BanEx, umjesto Ban
Poslednja Izmena: Jun 23, 2010, 15:40:45 POSLE PODNE od ExtremePower

Citat: Elvis_Elix poslato Jun 23, 2010, 15:36:11 POSLE PODNE
dodaj new string[128];

sad mi nalazi ove errore

C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(23) : error 017: undefined symbol "giveplayer"
C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(24) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

nastoe

Citat: Mario Velickovski poslato Jun 23, 2010, 15:39:26 POSLE PODNE
Citat: Elvis_Elix poslato Jun 23, 2010, 15:36:11 POSLE PODNE
dodaj new string[128];

sad mi nalazi ove errore

C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(23) : error 017: undefined symbol "giveplayer"
C:\Documents and Settings\Mako\Desktop\MacedonianAntiCheat.pwn(24) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Uzmi moj kod, popravio sam sve greške

dodaj

new giveplayer[MAX_PLAYER_NAME];
Mape:

))-((

Filescripte:

Dexy's Speedo/Fuel

Gamemodes:

))-((




SampArena FOREVER <3


nastoe

Citat: [SampArena]Deo poslato Jun 23, 2010, 15:41:34 POSLE PODNE
dodaj

new giveplayer[MAX_PLAYER_NAME];
Ili jednostavno da stavi umjesto giveplayer > playerid

neka proba ovaj moj kod ja mislim da ce raditi

moj radi 100 % al nek napravi sta oce :D
Mape:

))-((

Filescripte:

Dexy's Speedo/Fuel

Gamemodes:

))-((




SampArena FOREVER <3