06.01.2011, 15:38
Hey forums
whats wrong with my code
i want to write /plate (name) and then it should put the name thats written into the plate
whats wrong with my code
pawn Код:
CMD:plate(playerid, params[])
{
{
if(!IsPlayerAdmin(playerid)) return notadmin
new id, name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if(sscanf(params, "u", id))
{
SendClientMessage(playerid, orange, "Usage: /plate (name)");
return 1;
}
if(!sscanf(params, "u", id))
{
new string[128];
SetVehicleNumberPlate(playerid, name2[]);
GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
format(string, sizeof string, "You Have Changed your number plate to %s (%d)", name2, id);
SendClientMessage(playerid, green, string);
return 1;
}
return 1;
}
}