30.01.2012, 00:14
Код:
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 ..
