warning 202: number of arguments does not match definition
#1

how i can i remove that warning?

Код:
C:\Users\Louis Alcosaba\Desktop\LSCNR\gamemodes\1.2.pwn(1863) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
line 1863

Код:
GetPlayerMoney(playerid, -10000);
this is the code OnPlayerDeath

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[120];
	GetPlayerMoney(playerid, -10000);
	SendClientMessage(playerid, COLOR_WHITE, "You have been charged $10,000 for medical services.");
	SetPlayerWantedLevel(playerid, 0);
	if(!IsPlayerConnected(killerid))
	{
	    format(string, sizeof(string), "[DEATH]: %s Killed Himself.", PlayerInfo(playerid));
		print(string);
		return 1;
	}
Reply
#2

It should be this if you want to decrease their cash:
pawn Код:
GivePlayerMoney(playerid, -10000);
__________________________________________________ _________________________________________________

If you're looking for GetPlayerMoney, it should be like this:
For Example, you want to tell how much money that player has:
pawn Код:
SendClientMessage(playerid,COLOR_RED,"Your money: $%i.", GetPlayerMoney(playerid));
Reply
#3

yay bro! +1 rep fixed!! thanks
Reply
#4

No problem, dude.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)