invalid expressions and definition does not match
#1

D:\server\gamemodes\ExtremeGame.pwn(2231 : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(2231 : warning 202: number of arguments does not match definition
D:\server\gamemodes\ExtremeGame.pwn(2231 : warning 202: number of arguments does not match definition
D:\server\gamemodes\ExtremeGame.pwn(4317 : warning 202: number of arguments does not match definition
D:\server\gamemodes\ExtremeGame.pwn(43196) : warning 202: number of arguments does not match definition

Line 22318: return public PayDay(playerid, params);

Код:
 CMD:payday(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	return public PayDay(playerid, params);
	return 1;
}
43178: GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);

Код:
 	else if(Mobile[playerid] == -3)
			{
				new location[MAX_ZONE_NAME], name[30], strings[128];
				GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
				GetPlayerName(playerid, name, sizeof(name));
				format(strings, sizeof(strings), "Dispatch: %s has reported: '%s' (10-20 %s)", name, text, location);
				SendTeamMessage(8, COLOR_LIGHTBLUE, strings);
				SendTeamMessage(3, COLOR_LIGHTBLUE, strings);
				SendTeamMessage(2, COLOR_LIGHTBLUE, strings);
				SendTeamMessage(1, COLOR_LIGHTBLUE, strings);
				SendClientMessage(playerid, COLOR_WHITE, "(cellphone) 112: Thank you for reporting this incident; a patrol unit is now on its way.");
				SendClientMessage(playerid, COLOR_WHITE, "Your call has been terminated by the other party.");
				RemovePlayerAttachedObject(playerid, 4);
				Mobile[playerid] = -1;
				CellTime[playerid] = 0;
				PlayerInfo[playerid][pSpeaker] = 0;
				SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
			}
43196: GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
Код:
 	new location[MAX_ZONE_NAME], name[30], strings[128];
				GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
				GetPlayerName(playerid, name, sizeof(name));
				format(strings, sizeof(strings), "Dispatch: %s has reported '%s' (10-20 %s)", name, text, location);
				SendTeamMessage(14, COLOR_ALLDEPT, strings);
				SendClientMessage(playerid, COLOR_WHITE, "(cellphone) 112: Thank you for reporting this incident; we are on our way.");
				SendClientMessage(playerid, COLOR_WHITE, "Your call has been terminated by the other party.");
				RemovePlayerAttachedObject(playerid, 4);
				Mobile[playerid] = -1;
				CellTime[playerid] = 0;
				PlayerInfo[playerid][pSpeaker] = 0;
				SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
Reply


Messages In This Thread
invalid expressions and definition does not match - by enzulikeS - 12.02.2018, 21:09
Re: invalid expressions and definition does not match - by Mugala - 12.02.2018, 21:14
Re: invalid expressions and definition does not match - by AdamsLT - 12.02.2018, 22:48
Re: invalid expressions and definition does not match - by AlexMSK - 12.02.2018, 23:00
Re: invalid expressions and definition does not match - by enzulikeS - 13.02.2018, 12:29

Forum Jump:


Users browsing this thread: