I got warnings
#1

I got warnings like this
Код:
J:\Game\Server File\Stregs [cuff sys]\gamemodes\SRC.pwn(57375) : warning 202: number of arguments does not match definition
J:\Game\Server File\Stregs [cuff sys]\gamemodes\SRC.pwn(57381) : warning 202: number of arguments does not match definition
J:\Game\Server File\Stregs [cuff sys]\gamemodes\SRC.pwn(57381) : warning 202: number of arguments does not match definition
J:\Game\Server File\Stregs [cuff sys]\gamemodes\SRC.pwn(57382) : warning 202: number of arguments does not match definition
J:\Game\Server File\Stregs [cuff sys]\gamemodes\SRC.pwn(93659) : warning 203: symbol is never used: "Boombox"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
And this is the code of this issues
Код:
foreach(Player, i)
	{
		if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
		{
			new giveplayerid = i;
			if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
			{
				SendClientMessageEx(playerid, COLOR_GREY, "Jaringan sibuk (sedang nelfon).");
				return 1;
			}
			Mobile[playerid] = giveplayerid; //caller connecting
			if(IsPlayerConnected(giveplayerid))
			{
				if(giveplayerid != INVALID_PLAYER_ID)
				{

					if(PhoneOnline[giveplayerid] > 0)
					{
						SendClientMessageEx(playerid, COLOR_GREY, "Handphone player tersebut dimatikan.");
						return 1;
					}
					if(PlayerInfo[playerid][pPhonePrivacy] == 1)
					{
						SendClientMessageEx(giveplayerid, COLOR_GREEN, "___________________________________________________________________________________________________");
						SendClientMessageEx(giveplayerid, COLOR_WHITE, "Pesan dari: {FF0000}Nomor dirahasiakan");
						SendClientMessageEx(giveplayerid, COLOR_WHITE, "%s", text);
						SendClientMessageEx(giveplayerid, COLOR_GREEN, "___________________________________________________________________________________________________");
					}
					else
					{
						SendClientMessageEx(giveplayerid, COLOR_GREEN, "___________________________________________________________________________________________________");
						SendClientMessageEx(giveplayerid, COLOR_WHITE, "Pesan dari: {FFFF00}%d ({FFFF00}%s{FFFFFF})",PlayerInfo[playerid][pPnumber],GetPlayerNameEx(playerid));
						SendClientMessageEx(giveplayerid, COLOR_WHITE, "%s", text);
						SendClientMessageEx(giveplayerid, COLOR_GREEN, "___________________________________________________________________________________________________");
					}
Help me please to fix this issues, cause this issues makes Server Crashing.
Reply
#2

Ehm you cannot use
pawn Код:
SendClientMessageEx(giveplayerid, COLOR_WHITE, "%s", text);
You need to use Format
Reply
#3

SendClientMessageEx works like Printf. You can format your message.

Error lines are

I'm guessing they are on these lines:

PHP код:
SendClientMessageEx(giveplayeridCOLOR_GREEN"___________________________________________________________________________________________________");
                    } 
If yes then replace them with SendClientMessage.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)