Command help: /agivevehiclelicense
#1

Hi again!

Sorry if i'm bugging you, but i need help. Hopefully i will learn to script better as the time goes.

pawn Код:
command(agivevehiclelicense, playerid, params[])
{
    new id, string [128];
    if( sscanf( params, "u", id) )
    {
        if( Player[playerid][AdminLevel] >= 3 )
        {
            SendClientMessage( playerid, SYNTAXMSG, "SYNTAX: /agivevehiclelicense [playerid]" );
        }
        else
        {
            SendClientMessage( playerid, SYNTAXMSG, "You are not authorized to use that command." );
        }
    }
    else
    {
        if( Player[playerid][AdminLevel] >= 3 )
        {
            if( IsPlayerConnectedEx( id ) )
            {
                if( Player[id][License] == 0 )
                {
                    format( string, sizeof( string ), "You has been given a vehicle license by administrator %s.", GetName( playerid ) );
                    SendClientMessage( id, WHITE, string );
                    format( string, sizeof( string ), "You gave %s a gehivle license.", GetName( id ) );
                    SendClientMessage( playerid, WHITE, string );
                    Player[id][License] = 1;
                }
                else
                {
                    SendClientMessage( playerid, SYNTAXMSG, "That player is already in possesion of a valid license." );
                }
            else
            {
                SendClientMessage( playerid, SYNTAXMSG, "That player is not connected / logged in." );
            }
        else
        {
            SendClientMessage( playerid, SYNTAXMSG, "You are not authroized to use that command." );
        }
    }
    return 1;
}
WHen compiling this i loads of errors, i can't understand what's wrong!

It's errors like " GivePlayerWeaponEx never used" etc.

Thanks in advance
Bates
Reply


Messages In This Thread
Command help: /agivevehiclelicense - by Bates - 28.10.2010, 15:30
Re: Command help: /agivevehiclelicense - by DeathOnaStick - 28.10.2010, 17:00
Re: Command help: /agivevehiclelicense - by Bates - 28.10.2010, 17:34
Re: Command help: /agivevehiclelicense - by DeathOnaStick - 28.10.2010, 17:41
Re: Command help: /agivevehiclelicense - by Mean - 28.10.2010, 18:49
Re: Command help: /agivevehiclelicense - by Bates - 28.10.2010, 19:41
Re: Command help: /agivevehiclelicense - by Mike_Peterson - 28.10.2010, 19:44
Re: Command help: /agivevehiclelicense - by Hamza' - 28.10.2010, 21:13
Re: Command help: /agivevehiclelicense - by ••• ĤБĶБM ••• - 28.10.2010, 21:18
Re: Command help: /agivevehiclelicense - by Hamza' - 28.10.2010, 21:23

Forum Jump:


Users browsing this thread: 4 Guest(s)