11.04.2011, 12:12
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:
And it always gives me this error
I'd be thankful if somebody could tell me what ive done wrong or if this is even possible this way.
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 }
Код:
(2923) : error 035: argument type mismatch (argument 2)