problem with SetVehicleNumberPlate
#1

can't make it work. bug?

i've tryed with this codes:
pawn Код:
if(!strcmp(cmd, "/patente", true)){
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    SetVehicleNumberPlate(GetPlayerVehicleID(playerid), name);
    return 1;
}
if(!strcmp(cmd, "/patente2", true)){
    new tmp[256];
    tmp = strtok(cmdtext, idx);
    SetVehicleNumberPlate(GetPlayerVehicleID(playerid), tmp);
    return 1;
}
if(!strcmp(cmd, "/patente3", true)){
    SetVehicleNumberPlate(GetPlayerVehicleID(playerid), "jaja");
    return 1;
}
but none of them work. (N)
Reply
#2

You have to use SetVehicleToRespawn after new plate has been set.
Reply
#3

You need to respawn the vehicle after changing the plate.
pawn Код:
SetVehicleToRespawn( vehicleid );
This forum requires that you wait 120 seconds between posts. Please try again in 31 seconds. - Always makes me late.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)