whats wrong with this arguments?
#1

Код:
CMD:givemoney(playerid, params[])
{
	new playerb, amount;
	if(sscanf(params,"ui",playerb,amount)) return SendClientMessage(playerid,lblue, "USAGE: /givemoney [playerid][amount]");
    if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid,grey, "Invalid player id.");
	GiveDrichMoney(playerb,amount);
   	return 1;
}
if(sscanf(params,"ui",playerb,amount)) return SendClientMessage(playerid,lblue, "USAGE: /givemoney [playerid][amount]");
if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid,grey, "Invalid player id.");
this line where i get this error

Код:
test1.pwn(140) : error 035: argument type mismatch (argument 2)
test1.pwn(141) : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
whats wrong with this arguments? - by drichie - 01.06.2013, 06:16
Re: whats wrong with this arguments? - by _chimera_ - 01.06.2013, 06:29
Re: whats wrong with this arguments? - by YesYesYes - 01.06.2013, 06:33
Re: whats wrong with this arguments? - by drichie - 01.06.2013, 06:43
Re: whats wrong with this arguments? - by _chimera_ - 01.06.2013, 06:44
Re: whats wrong with this arguments? - by Stanford - 01.06.2013, 06:57

Forum Jump:


Users browsing this thread: 1 Guest(s)