SA-MP Forums Archive
problem with SetVehicleNumberPlate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with SetVehicleNumberPlate (/showthread.php?tid=194232)



problem with SetVehicleNumberPlate - TheChaoz - 28.11.2010

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)


Re: problem with SetVehicleNumberPlate - dugi - 28.11.2010

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


Re: problem with SetVehicleNumberPlate - Grim_ - 28.11.2010

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.