Warning
#1

Код:
format(string, sizeof(string), "HQ: Car plate: %s", SetVehicleNumberPlate(vehicleID));
Код:
../gamemodes/VehicleSystem.pwn(372) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
What's the problem here?
Reply
#2

Good try this if you do not post the whole code or tell me what you want to do
PHP код:
 format(stringsizeof(string),"HQ: Car plate: %s"vehicleID);
SetVehicleNumberPlate(VehicleIDstring); 
Reply
#3

Quote:

set
sɛt/
verb
verb: set; 3rd person present: sets; past tense: set; past participle: set; gerund or present participle: setting

put, lay, or stand (something) in a specified place or position.
"Delaney set the mug of tea down"
synonyms: put, place, put down, lay, lay down, deposit, position, settle, station; More
leave, stow, prop, lean, stand, plant, pose, dispose;
informalstick, dump, bung, park, plonk, plump, pop;
informalplunk;
rareposit
"Beth set the two bags on the kitchen table"

be situated or fixed in a specified place or position.
"the village was set among olive groves on a hill"
synonyms: be situated, be located, lie, stand, be sited, be perched; be found
"the cottage was set on a hill at the back of the village"
represent (a story, play, film, or scene) as happening at a specified time or in a specified place.
"a private-eye novel set in Berlin"
mount a precious stone in (something, typically a piece of jewellery).
"a bracelet set with emeralds"
mount (a precious stone) in something.
"a huge square-cut emerald set in platinum"
synonyms: adorn, ornament, decorate, embellish, deck, bedeck; literarybejewel
"an enamelled gold figurine set with precious stones"

So I don't see how you mean to get anything from it.
Reply
#4

Quote:
Originally Posted by Ronen765001
Посмотреть сообщение
Код:
format(string, sizeof(string), "HQ: Car plate: %s", SetVehicleNumberPlate(vehicleID));
Код:
../gamemodes/VehicleSystem.pwn(372) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
What's the problem here?
What are you even trying to do? That's not How you change a vehicles number plate. Please read the basics.
https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate

Quote:
Originally Posted by didimk157
Посмотреть сообщение
Good try this if you do not post the whole code or tell me what you want to do
PHP код:
 format(stringsizeof(string),"HQ: Car plate: %s"vehicleID);
SetVehicleNumberPlate(VehicleIDstring); 
That's not how you respond. That'll not even work. You don't just assume others variables and post non working codes. You either have to tell them how to fix it, or ask them to paste more code.
Reply
#5

Quote:
Originally Posted by didimk157
Посмотреть сообщение
Good try this if you do not post the whole code or tell me what you want to do
PHP код:
 format(stringsizeof(string),"HQ: Car plate: %s"vehicleID);
SetVehicleNumberPlate(VehicleIDstring); 
Quote:
Originally Posted by Vince
Посмотреть сообщение
So I don't see how you mean to get anything from it.
Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
What are you even trying to do? That's not How you change a vehicles number plate. Please read the basics.
https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate



That's not how you respond. That'll not even work. You don't just assume others variables and post non working codes. You either have to tell them how to fix it, or ask them to paste more code.
Yea, I did it wrong.
I fixed it like that:
Код:
format(string, sizeof(string), "HQ: Car plate: %s", VehicleInfo[vehicleID][vPlate]);
Reply
#6

What I wanted to do, when someone attempts to break into a car, it will send a message to the PD about:
Location (not checkpoint, it's not really needed)
Car Plate (That's why you don't need a checkpoint, PD can trace a plate)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)