Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Lesa poslato Novembar 19, 2012, 23:34:33 POSLE PODNE

Naslov: [Pomoc] Kako da sredim ove Warnove - Moze Lock Sredjeno :)
Poruka od: Lesa poslato Novembar 19, 2012, 23:34:33 POSLE PODNE
Skripta koju koristim: Moja
Detaljan opis problema: Izbacuje mi ove warnove ako neko zna kako mogu da ih sredim :)
Dio skripte: Warnovi koje mi izbacuje

C:\Users\Zoran\Desktop\SampSerbe FR-DM\gamemodes\ES.pwn(1000) : warning 202: number of arguments does not match definition
C:\Users\Zoran\Desktop\SampSerbe FR-DM\gamemodes\ES.pwn(1042) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.

LInije na kojima prikazuje warnove

1001                GetPlayerName(playerid, GetName(playerid), 20);
1002             SendClientMessageToAll(yellow, "{EE7621}Admin | {FFFFFF}%s {EE7621}je obrisao chat.", GetName(playerid));

1043                    GetPlayerName(playerid, GetName(playerid), 20);
1044            SendClientMessageToAll(yellow, "{EE7621}GameSage | {FFFFFF}%s {EE7621}je obrisao chat.", GetName(playerid));
Naslov: Odg: [Pomoc] Kako da sredim ove Warnove
Poruka od: vlado_plavsic poslato Novembar 19, 2012, 23:44:16 POSLE PODNE
                GetPlayerName(playerid, GetName(playerid), 20);
format(string, sizeof(string), "{EE7621}Admin | {FFFFFF}%s {EE7621}je obrisao chat.", GetName(playerid));
            SendClientMessageToAll(yellow,string);

format(string, sizeof(string), "{EE7621}Admin | {FFFFFF}%s {EE7621}je obrisao chat.", GetName(playerid));
                    GetPlayerName(playerid, GetName(playerid), 20);            
    SendClientMessageToAll(yellow, string);


S time da definises promenljivu string. Nema potrebe da stavljas duzinu vecu od 20?
Naslov: Odg: [Pomoc] Kako da sredim ove Warnove
Poruka od: Kopra poslato Novembar 19, 2012, 23:45:22 POSLE PODNE
               
                                    new string[40];
                                    format(string,sizeof(string),"{EE7621}Admin | {FFFFFF}%s {EE7621}je obrisao chat.",GetName(playerid));
                    SendClientMessageToAll(yellow, string);

                                    new string[40];
                                    format(string,sizeof(string),"{EE7621}GameSage | {FFFFFF}%s {EE7621}je obrisao chat.",GetName(playerid));
                    SendClientMessageToAll(yellow, string);


Edit: plavsa brzi :D
Naslov: Odg: [Pomoc] Kako da sredim ove Warnove
Poruka od: Lesa poslato Novembar 19, 2012, 23:49:07 POSLE PODNE
Hvala vam obojici :)