Number of arguments does not match the definition...
#1

Код:
	new buldozer = CreateVehicle(522,673.4075,927.5541,-41.2578,143.4993,0xFFDD00FF,0xFFDD00FF,180);
	new buldozertablica[128] = "40817231";
	SetVehicleNumberPlate(buldozer,"%s",buldozertablica);
(45) : warning 202: number of arguments does not match definition

This is line 45:
Код:
SetVehicleNumberPlate(buldozer,"%s",buldozertablica);
Reply
#2

You need to use format and there is no third parameter! https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate

pawn Код:
static str[32];
format(str, sizeof(str), "%s", buldozertablica);
SetVehicleNumberPlate(buldozer, str);
Reply
#3

Stupid. You're not adding anything new into the string, so why not use the original variable in the first place?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)