Hmmh .. I did smthing wrong or its just me.....
#1

Код:
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
Reply
#2

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

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

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;
}

Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)