SetCoins
#1

What's wrong here?
( 2978 ) : warning 202: number of arguments does not match definition

Код:
CMD:setcoins( playerid,params[])
{
    if ( GetPVarInt( playerid, "AdminLevel" ) < 1 )
	    return SendClientMessage( playerid, -1, "You must be an "#AdminLevel1" to use this command");

	if ( sscanf( params, "ui", params[ 0 ], params[ 1 ] ))
	    return SendClientMessage( playerid, -1, ""COLOR_LIGHTBLUE"Usage:{FFFFFF} /setcoins <id/name> <coins> ");

    if ( !IsPlayerConnected( params[ 0 ] ) )
	    return SendClientMessage( playerid, -1, ""COLOR_RED"Player is not connected");

    if (GetPVarInt( playerid, "AdminLevel" ) < GetPVarInt( params[ 0 ], "AdminLevel" ) )
	    return SendClientMessage( playerid, -1, "You are not allowed to use this command on this admin."),SendClientMessage( playerid, -1, "That player is higher in grade than you.");

	SetPVarInt( playerid, "Coins"); //2978 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

	new String[ 245 ];
    format( String, sizeof String, "You set "COLOR_LIGHTBLUE"%s's{FFFFFF} coins to "COLOR_LIGHTBLUE"%d", pName(  params[ 0 ] ),params[ 1 ] );
    SendClientMessage( playerid, -1, String );
    format( String, sizeof String, ""COLOR_LIGHTBLUE"%s( %s ){FFFFFF} set your coins to "COLOR_LIGHTBLUE"%d",pName( playerid ), GetPlayerLevelName( playerid ), params[ 1 ] );
    SendClientMessage( params[ 0 ], -1, String );
	return 1;
}
Reply


Messages In This Thread
SetCoins - by SumX - 01.08.2012, 14:49
Re: SetCoins - by Jikesh - 01.08.2012, 14:57
Re: SetCoins - by SumX - 01.08.2012, 14:59
Re: SetCoins - by Jikesh - 01.08.2012, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)