Business System +Rep
#1

I have some errors and warnings but I can't understand what's wrong.

Код:
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(19780 -- 19789) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(19780 -- 19790) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(19780 -- 19791) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57131) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57131) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57132) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57143) : error 076: syntax error in the expression, or invalid function call
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57144) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57144) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57145) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57145) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57153) : error 076: syntax error in the expression, or invalid function call
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57154) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57154) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57155) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57155) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57161) : error 076: syntax error in the expression, or invalid function call
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57162) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57162) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57163) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57163) : warning 213: tag mismatch
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57174) : error 076: syntax error in the expression, or invalid function call
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(57189) : error 076: syntax error in the expression, or invalid function call
C:\Users\home\Desktop\RS-RP v3.2.5\gamemodes\Script.pwn(91031) : warning 203: symbol is never used: "LoadBusiness"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
And here is my code:

PHP код:
CMD:bedit(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1"You must be on Admin Duty to use this Command!");
    if(
PlayerInfo[playerid][pAdmin] < 1338)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD2"You are not authorized to use that command!");
        return 
1;
    }
    new 
string[128], choice[32], businessidamount;
    if(
sscanf(params"s[32]dD"choicebusinessidamount))
    {
        
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /bedit [name] [businessid] [(Optional)amount]");
        
SendClientMessageEx(playeridCOLOR_GREY"Available names: Exterior, Type, Price");
        return 
1;
    }
    
    if(
strcmp(choice"exterior"true) == 0)
    {
        
GetPlayerPos(playeridBusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]); // Here is 57131
        
GetPlayerFacingAngle(playeridBusinessInfo[businessid][bExteriorA]); // Here is 57132
        
SendClientMessageEx(playeridCOLOR_WHITE"You have changed the exterior!");
        
DestroyDynamicPickup(BusinessInfo[businessid][bIconID]);
        
SaveBusiness();
        
format(stringsizeof(string), "%s has edited BusinessID %d's Exterior."GetPlayerNameEx(playerid), businessid);
        
Log("logs/bedit.log"string);
        if(
BusinessInfo[businessid][bOwned] ==0)
        {
            
DestroyDynamicPickup(BusinessInfo[businessid][bIconID]);
            
DestroyDynamic3DTextLabel(BusinessInfo[businessid][bTextID]);
            
format(stringsizeof(string),"{33FF33}ID: {FFFFFF}%d\n{33FF33}Owner: {FFFFFF}The State\n{33FF33}Type: {FFFFFF}%s\n{33FF33}Status: {FFFFFF}For Sell\n{33FF33}Price: {FFFFFF}%d\n To buy business type /buybusiness"businessidBusinessTypeBusinessInfo[businessid][bPrice]); // Here is 57143
            
BusinessInfo[businessid][bTextID] = CreateDynamic3DTextLabelstringCOLOR_REALREDBusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]+0.5,10.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1,  -110.0); // Here is 57144
            
BusinessInfo[businessid][bIconID] = CreateDynamicPickup(127323BusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]); // Here is 57145
        
}
        else
        {
            if(
BusinessInfo[businessid][bName] == 0)
            {
                
DestroyDynamicPickup(BusinessInfo[businessid][bIconID]);
                
DestroyDynamic3DTextLabel(BusinessInfo[businessid][bTextID]);
                
format(stringsizeof(string),"{33FF33}ID: %d\n{33FF33}Owner: {FFFFFF}%s\n{33FF33}Type: {FFFFFF}%s\n{33FF33}Status: {FFFFFF}%s",businessidBusinessInfo[businessid][bOwner], BusinessTypeBusinessStatus);
                
BusinessInfo[businessid][bTextID] = CreateDynamic3DTextLabel(string,COLOR_WHITE,BusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]+0.5,10.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1,  -110.0); // Here is line 57154
                
BusinessInfo[businessid][bIconID] = CreateDynamicPickup(127323BusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]); // Here is Line 57155
            
}
            else
            {
                
DestroyDynamicPickup(BusinessInfo[businessid][bIconID]);
                
DestroyDynamic3DTextLabel(BusinessInfo[businessid][bTextID]);
                
format(stringsizeof(string), "{33FF33}ID: %d\n{33FF33}Owner: {FFFFFF}%s\n{33FF33}Name: {FFFFFF}%s\n{33FF33}Type: {FFFFFF}%s\n{33FF33}Status: {FFFFFF}%s",businessidBusinessInfo[businessid][bOwner],BusinessInfo[businessid][bName], BusinessTypeBusinessStatus); // Here is line 57161
                
BusinessInfo[businessid][bTextID] = CreateDynamic3DTextLabel(string,COLOR_WHITE,BusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]+0.5,10.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1,  -110.0); // Here is Line 57162
                
BusinessInfo[businessid][bIconID] = CreateDynamicPickup(127323BusinessInfo[businessid][bExteriorX], BusinessInfo[businessid][bExteriorY], BusinessInfo[businessid][bExteriorZ]); // Here is Line 57163
            
}
        }
    }
    else if(
strcmp(choice"price"true) == 0)
    {
        
BusinessInfo[businessid][bPrice] = amount;
        
format(stringsizeof(string), "You have set the business price to $%d."amount );
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        if(
BusinessInfo[businessid][bOwned] ==0)
        {
            
format(stringsizeof(string),"{33FF33}ID: {FFFFFF}%d\n{33FF33}Owner: {FFFFFF}The State\n{33FF33}Type: {FFFFFF}%s\n{33FF33}Status: {FFFFFF}For Sell\n{33FF33}Price: {FFFFFF}%d\n To buy business type /buybusiness"businessidBusinessTypeBusinessInfo[businessid][bPrice]); // Here is line 57174
            
UpdateDynamic3DTextLabelText(BusinessInfo[businessid][bTextID], COLOR_WHITEstring);
        }
        
format(stringsizeof(string), "%s has edited businessid %d's Price to $%d."GetPlayerNameEx(playerid), amount);
        
Log("logs/bedit.log"string);
    }
    else if(
strcmp(choice"type"true) == 0)
    {
        if(
amount || amount 7) return SendClientMessageEx(playeridCOLOR_GREY"Businesses are between 1 and 7.");
        
BusinessInfo[businessid][bType] = amount;
        
format(stringsizeof(string), "You have set the business type to $%d."amount);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        if(
BusinessInfo[businessid][bOwned] ==0)
        {
            
format(stringsizeof(string),"{33FF33}ID: {FFFFFF}%d\n{33FF33}Owner: {FFFFFF}The State\n{33FF33}Type: {FFFFFF}%s\n{33FF33}Status: {FFFFFF}For Sell\n{33FF33}Price: {FFFFFF}%d\n To buy business type /buybusiness"businessidBusinessTypeBusinessInfo[businessid][bPrice]); // Here is line 57189
            
UpdateDynamic3DTextLabelText(BusinessInfo[businessid][bTextID], COLOR_WHITEstring);
        }
        
format(stringsizeof(string), "%s has edited businessid %d's Type to %d."GetPlayerNameEx(playerid), amount);
        
Log("logs/bedit.log"string);
    }
    
SaveBusiness();
    return 
1;

Reply
#2

Warning/Error lines?
Reply
#3

They are placed
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)