02.03.2015, 01:45
Код:
lsr\factions.pwn(472 -- 480) : error 014: invalid statement; not in switch lsr\factions.pwn(472 -- 480) : fatal error 107: too many error messages on one line
PHP код:
case EFactionsDialog_PlayerMDC: {
if (response)
{
new giveplayerid;
giveplayerid = ReturnUser(inputtext);
// new dstring[256];
new stringge[500];
new text1[20];
new text2[20];
new text3[20];
new text4[20];
new text5[20];
new text6[20];
new ELicenseFlags:lflags = ELicenseFlags:GetPVarInt(giveplayerid, "LicenseFlags");
new hasinsurance = GetPVarInt(giveplayerid, "UserFlags") & EUFHasCarInsurance;
new yes[24] = "Acquired";
new no[24] = "Not Acquired";
format(text1, sizeof(text1), "%s",lflags&ELicense_Drivers?yes:no);
format(text2, sizeof(text2), "%s",lflags&ELicense_Flying?yes:no);
format(text3, sizeof(text3), "%s",lflags&ELicense_Fishing?yes:no);
format(text4, sizeof(text4), "%s",lflags&ELicense_Sailing?yes:no);
format(text5, sizeof(text5), "%s",lflags&ELicense_Gun?yes:no);
format(text6, sizeof(text6), "%s",hasinsurance?yes:no);
/*472*/new sendername[MAX_PLAYER_NAME];
giveplayerid = ReturnUser(inputtext);
format(stringge, sizeof(stringge), "Name: %s\r\nPhoneNumber:(%d)\r\nSex: %s\r\n\r\nBank Account:$%s\r\nDrivers License: %s\r\nFlying License: %s\r\nFishing License: %s\r\nSailing License: %s\r\nWeapons License: %s\r\nVehicle Insurance: %s\r\nTimes Arrested: %d\r\Warrants:[%d]\r\n\r\n",
GetPlayerNameEx(giveplayerid, ENameType_RPName_NoMask),GetPVarInt(giveplayerid,"PhoneNumber"),GetSexName(GetPVarInt(giveplayerid,"Sex")),getNumberString(GetPVarInt(giveplayerid,"Bank")), text1, text2, text3, text4, text5, text6, getNumberString(GetPVarInt(giveplayerid,"TimesArrested")),
GetPlayerWantedLevel(giveplayerid));
ShowPlayerDialog(playerid, EFactionsDialog_PlayerMDC, DIALOG_STYLE_MSGBOX,"Police MDC System",stringge,"Select","Exit");
}
}
/*480*/case EFactionsDialog_HitmanOrder: {