Numberplate
#1

Hey forums

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;
}
}
i want to write /plate (name) and then it should put the name thats written into the plate
Reply


Messages In This Thread
Numberplate - by [SU]Fnugski - 06.01.2011, 15:38
Re: Numberplate - by PowerPC603 - 06.01.2011, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)