Quote:
Originally Posted by Bates
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
|
Post all errors that you get listed.
[gay]This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds.[/gay]