Warning

Započeo L Ц K Q, Oktobar 30, 2021, 23:00:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kod komande mi izbacuje neke warninge koje ne znam kako da riješim
Deo skripte: [pawn]CMD:gethere(playerid, const params[])
{
    new targetid,
   Float:X,
   Float:Y,
   Float:Z;
   if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, ""SERVERCOLOR"USAGE: "WHITE"/gethere [ID]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""RED"ERROR: That player isn't connected.");
   if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, ""RED"ERROR: "WHITE"That player is currently offline.");
   GetPlayerPos(playerid, X, Y, Z);
   SetPlayerPos(targetid, X+2,Y,Z);
   SendClientMessage(playerid, -1, ""SERVERCOLOR"sleepy |"WHITE" You gethered %s.", GetName(targetid));
   SendClientMessage(targetid, -1, ""SERVERCOLOR"sleepy |"WHITE" Admin %s teleported you to himself.", GetName(playerid));
   
   return 1;
}[/pawn]

Warning koji mi izbacuje:
[pawn]C:\Users\User\Serveri\sleepy.dm v1.0\gamemodes\sleepy.pwn(2121) : warning 202: number of arguments does not match definition
C:\Users\User\Serveri\sleepy.dm v1.0\gamemodes\sleepy.pwn(2122) : warning 202: number of arguments does not match definition[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Vaš odgovor
Poslednja Izmena: Novembar 02, 2021, 15:34:44 POSLE PODNE od M Ө M Σ N Z I

Citat: akul poslato Oktobar 30, 2021, 23:00:40 POSLE PODNE
[pawn]
   SendClientMessage(playerid, -1, ""SERVERCOLOR"sleepy |"WHITE" You gethered %s.", GetName(targetid));
   SendClientMessage(targetid, -1, ""SERVERCOLOR"sleepy |"WHITE" Admin %s teleported you to himself.", GetName(playerid));
   
   return 1;
}[/pawn]
Umesto ovoga stavi ovo [pawn]new string[120];
format(string, sizeof(string), ""SERVERCOLOR"sleepy |"WHITE" You gethered %s.", GetName(targetid));
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), ""SERVERCOLOR"sleepy |"WHITE" Admin %s teleported you to himself.", GetName(playerid));
SendClientMessage(targetid, -1, string);[/pawn]