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;
}
sorry first time from dcmd to strcmp() .. And I need to thank you + rep for me ..
|
warning 202: number of arguments does not match definition |
|
if(dialogid == DIALOG_ERROR) { ShowDialog(playerid, DialogReturn[playerid]);//here return 1; } |
That answer was good becose then I need to rescript like 200 lines
|
Thanks mate
That answer was good becose then I need to rescript like 200 lines ![]() |