warning 202: number of arguments does not match definition
#1

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");
Reply
#2

Am rezolvat / I solved.
Reply
#3

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.
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)