SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=636814)



warning 202: number of arguments does not match definition - xXGabyGabiXx - 04.07.2017

CMD:buycar(playerid, params[])
{
if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca..");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_WHITE,"{FFB870}Please get out of the car.");
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1337.6084,-1542.9644,13.5397))
{
if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be level 3 to buy a vehicle.");
BuyCar[playerid] = -1;
ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close");
}
else return SCM(playerid,COLOR_WHITE,"{FFB870}You are not the place where you can buy a car.");
return 1;




Warning: C:\Users\pHd\Desktop\samp03\gamemodes\BigZoneGM.pw n(27261) : warning 202: number of arguments does not match definition

Linia: ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close");


Re: warning 202: number of arguments does not match definition - xXGabyGabiXx - 04.07.2017

Am rezolvat / I solved.


Re: warning 202: number of arguments does not match definition - Meller - 04.07.2017

The fix for people who might have the same issue is:
He had two parameters of the title where he only needed one, so his "fix" was to remove the second "Buy a car". To fix a problem like this next time on your own hand; Just go to the wikipedia page, read the parameters and count yours.


Re: warning 202: number of arguments does not match definition - xXGabyGabiXx - 04.07.2017

Thank you, I have solved you are a very good man.