Switch Error
#1

Код:
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(text1sizeof(text1), "%s",lflags&ELicense_Drivers?yes:no);
            
format(text2sizeof(text2), "%s",lflags&ELicense_Flying?yes:no);
            
format(text3sizeof(text3), "%s",lflags&ELicense_Fishing?yes:no);
            
format(text4sizeof(text4), "%s",lflags&ELicense_Sailing?yes:no);
            
format(text5sizeof(text5), "%s",lflags&ELicense_Gun?yes:no);
            
format(text6sizeof(text6), "%s",hasinsurance?yes:no);
              
/*472*/new sendername[MAX_PLAYER_NAME];
            
giveplayerid ReturnUser(inputtext);
              
format(stringgesizeof(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(giveplayeridENameType_RPName_NoMask),GetPVarInt(giveplayerid,"PhoneNumber"),GetSexName(GetPVarInt(giveplayerid,"Sex")),getNumberString(GetPVarInt(giveplayerid,"Bank")), text1text2text3text4text5text6getNumberString(GetPVarInt(giveplayerid,"TimesArrested")),
            
GetPlayerWantedLevel(giveplayerid));
            
ShowPlayerDialog(playeridEFactionsDialog_PlayerMDCDIALOG_STYLE_MSGBOX,"Police MDC System",stringge,"Select","Exit");
        }
        }
        
/*480*/case EFactionsDialog_HitmanOrder: { 
Reply
#2

Can you show the whole switch?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)