Vehicle Plates
#1

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.
Reply
#2

Remove the line 2922 and put tmp in the function SetVehicleNumberPlate.
Reply
#3

ahhh cheers, now i can finish the rest of it off
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)