Jump to content
  • 0

Warning


KinNg

Question

Salut, m-am lovit de o problema, si am putina nevoie de ajutor

La comanda

  if(strcmp(cmd, "/asistenti", true) == 0)
    {
		if(IsPlayerConnected(playerid))
		{
			new counth = 0;
			SendClientMessage(playerid, COLOR_RED, "|________e-LiKe Asistents_______|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pHelper] >= 1 && PlayerInfo[i][pHelper] <= 4)
				{
					GetPlayerName(i, sendername, sizeof(sendername));
					if(HelperDuty[i] == 0)
					{
						SendClientMessage(playerid, RED, "{FFFFFF}Asistent: {FFFF00}Level: %d | NickName: %s", PlayerInfo[playerid][pHelper], sendername);  <-- Linia 26935
						counth++; <--- Linia 26936
						return 1;
					}
					if(HelperDuty[i] == 1)
					{
						format(string, 128, "{FFFFF}Asistent: {FFFF00} %s | Level: %d | Asistent is on duty", sendername, PlayerInfo[playerid][pHelper]);
						SendClientMessage(playerid, COLOR_LIGHTRED, string);
						counth++;
						return 1;
					}
				}
			}
Imi da Warningurile:
D:\Users\VRD\Desktop\4gaming\•4Gaming•\gamemodes\gf.pwn(26935) : warning 202: number of arguments does not match definition
D:\Users\VRD\Desktop\4gaming\•4Gaming•\gamemodes\gf.pwn(26935) : warning 202: number of arguments does not match definition
D:\Users\VRD\Desktop\4gaming\•4Gaming•\gamemodes\gf.pwn(26956) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          14828 bytes
Code size:          2727172 bytes
Data size:          4861476 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 7619860 bytes

3 Warnings. 

Cum as putea rezolva asta?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

A aratat-o cu sageata SendClientMessage(playerid, RED, "{FFFFFF}Asistent: {FFFF00}Level: %d | NickName: %s", PlayerInfo[playerid][pHelper], sendername);  <-- Linia 26935

in locul ei trebuie sa faci asa

[pawn]

new rstr[ 256 ];

format( rstr, sizeof( rstr ), "{FFFFFF}Asistent: {FFFF00}Level: %d | NickName: %s", PlayerInfo[playerid][pHelper], sendername);

SendClientMessage( rstr );[/pawn]

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.