SA-MP Forums Archive
Hmmh .. I did smthing wrong or its just me..... - 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: Hmmh .. I did smthing wrong or its just me..... (/showthread.php?tid=314493)



Hmmh .. I did smthing wrong or its just me..... - trapped1 - 30.01.2012

Код:
error 017: undefined symbol "ShowDialog"
error 017: undefined symbol "params"
Код:
	
        if(dialogid == DIALOG_ERROR)
	{
		ShowDialog(playerid, DialogReturn[playerid]); //starts from here
		return 1;
	}
Код:
	
        if(!strcmp(cmdtext, "/deletefs", true, 9))
	{
		if(!IsAdmin(playerid, 1)) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
		new stationid, msg[128];
		if(sscanf(params, "d", stationid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /deletefs [stationid]");  //this line
		if(!IsValidFuelStation(stationid)) return SendClientMessage(playerid, COLOR_RED, "Invalid stationid!");
		FuelStationCreated[stationid] = 0;
		Delete3DTextLabel(FuelStationLabel[stationid]);
		SaveFuelStation(stationid);
		format(msg, sizeof(msg), "Deleted fuel station id %d", stationid);
		SendClientMessage(playerid, COLOR_WHITE, msg);
		return 1;
	}
Please help me out


Re: Hmmh .. I did smthing wrong or its just me..... - MP2 - 30.01.2012

1. It's ShowPlayerDialog
2. You're not using dcmd - 'params' isn't there.


Re: Hmmh .. I did smthing wrong or its just me..... - trapped1 - 30.01.2012

Ou thanks just failed with it sorry first time from dcmd to strcmp() .. And I need to thank you + rep for me ..


Re: Hmmh .. I did smthing wrong or its just me..... - trapped1 - 30.01.2012

One more problem.. how to get take off this warning...

Quote:

warning 202: number of arguments does not match definition

Quote:

if(dialogid == DIALOG_ERROR)
{
ShowDialog(playerid, DialogReturn[playerid]);//here
return 1;
}




Re: Hmmh .. I did smthing wrong or its just me..... - [ABK]Antonio - 30.01.2012

ShowPlayerDialog(playerid, dialogid, dialogstyle, title[], info[], button1[], button2[]);


Re: Hmmh .. I did smthing wrong or its just me..... - trapped1 - 30.01.2012

Thanks mate That answer was good becose then I need to rescript like 200 lines


Re: Hmmh .. I did smthing wrong or its just me..... - davve95 - 30.01.2012

Quote:
Originally Posted by trapped1
Посмотреть сообщение
Thanks mate That answer was good becose then I need to rescript like 200 lines
Oh not funny lol.