Vehicle Plates - 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: Vehicle Plates (
/showthread.php?tid=247924)
Vehicle Plates -
Hobod - 11.04.2011
Hi im trying to create a command that lets a player set the plates that are on each car that they spawn.
This is what ive got so far:
Код:
2915 dcmd_setplate(playerid, params[])
2916 {
2917 new Index;
2918 new tmp[256];
2919 tmp = strtok(params,Index);
2920 if(!strlen(tmp)) return
2921 SendClientMessage(playerid, COLOR_ORANGE, "Usage: /setplate [platetext]");
2922 new platetext = strval(tmp);
2923 SetVehicleNumberPlate(SpawnedVehicles[playerid], platetext);
2924 new message[256];
2925 format(message, sizeof(message), "You Spawned set your car plates to: %s.", platetext);
2926 return SendClientMessage(playerid,COLOR_ORANGE,message);
2927 }
And it always gives me this error
Код:
(2923) : error 035: argument type mismatch (argument 2)
I'd be thankful if somebody could tell me what ive done wrong or if this is even possible this way.
Re: Vehicle Plates -
CyNiC - 11.04.2011
Remove the line 2922 and put tmp in the function SetVehicleNumberPlate.
Re: Vehicle Plates -
Hobod - 11.04.2011
ahhh cheers, now i can finish the rest of it off