Jump to content
  • 0

Problema textdraw DealerShip


Kraim

Question

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

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.