Jump to content

Question

Posted

Imi da aceasi eroare orice asi face pe acel rand.

Problema:

C:\Users\Kraim\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(3627) : warning 202: number of arguments does not match definition
C:\Users\Kraim\Desktop\GM BigZone edited by Ainox\gamemodes\gm.pwn(3627) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Cod:

if(PlayerInfo[playerid][pPcarkey] == 0) InsertCar(playerid, DSModels[DealerID[playerid]][vModel], DSModels[DealerID[playerid]][vPrice], aVehicleNames[DSModels[DealerID[playerid]][vModel]-400], 1.0);
else return SCM(playerid, COLOR_LIGHTRED, "You don't have enough vehicle slots!");

 

Ajutati-ma va rog

 

1 answer to this question

Recommended Posts

  • 0
Posted

InsertCar

Avand in vedere ca nu e un public implicit al pawno, ai putea cauta "InsertCar" in scriptul tau ca si

ou

public InsertCar

sau

stock InsertCar

InsertCar(playerid, Model, Price, modelid, n);

 

number of arguments does not match definition - inseamna ca atunci cand folosesti functia, in cazul tau "InsertCar" , pui prea multe cazuri (model, price, modelid) sau prea putine fata de cele care le are public-ul/stock-ul implementate.

S-ar putea sa nu fi inteles nimic.

Te rog sa cauti in script ce am scris mai sus in <code> si sa imi dai aici acea linie, sau tot scriptul, cum iti vine mai usor.

 

 

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.