30.08.2011, 16:22
pawn Код:
dcmd_lp(playerid,params[])
{
new id,lp,string[128],oldname[MAX_PLAYER_NAME];
if(sscanf(params, "us[30]",id,lp)) SendClientMessage(playerid,COLOR_RED," Usage: /lp [ID] [Lisense Plate]");
else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Player Not Connected!");
else
{
GetPlayerName(id,oldname,sizeof(oldname));
new vehicleid = GetPlayerVehicleID(id);
SetVehicleNumberPlate(vehicleid,lp);
format(string,sizeof(string),"» Admin %s(ID:%d) has set "lblue"%s(ID:%d)'s"lgreen2"License Player To:"lblue"%s",GetPName(playerid),playerid,oldname,id,lp);
SendClientMessageToAll(green2,string);
}
return 1;
}
im getting a
Код:
C:\Documents and Settings\Chris\Desktop\Trucking\gamemodes\Trucking.pwn(2712) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.