Can't compile
#1

FIRST OF ALL: The 26 errors that i get are not within my command (but they are caused by the command, they are all missing methods(they arent missing tho)).So i would assume that this is a bracket error but i dont see any failed brackets within the command, when i delete the command everything compiles fine, so wth is going on?

I can not compile "my script" when i have this command inside of it:

since you are saying u need the useless errors, here:

Код:
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2439) : error 017: undefined symbol "sscanf"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2464) : error 017: undefined symbol "MessageToAdmins"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2505) : error 017: undefined symbol "PlayerName2"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2507) : error 017: undefined symbol "SaveToFile"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2514) : error 017: undefined symbol "TimeStamp"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2517) : error 017: undefined symbol "TimeStamp"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2519) : error 017: undefined symbol "TimeStamp"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2522) : error 017: undefined symbol "PlayerName2"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2524) : error 017: undefined symbol "SaveToFile"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2678) : error 017: undefined symbol "UpdateConfig"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3112) : error 017: undefined symbol "CountBusinesses"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3113) : error 017: undefined symbol "LoadBusinesses"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3119) : error 017: undefined symbol "CountVehicles"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3120) : error 017: undefined symbol "LoadVehicles"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3123) : error 017: undefined symbol "ModVehicle"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3151) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3152) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3153) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3154) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3155) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3156) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3157) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3158) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3159) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3160) : error 017: undefined symbol "AddHouse"
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3161) : error 017: undefined symbol "AddHouse"
they are line 24xx-34xx and my code is at 332xx-333xx, TOTALLY DIFFRENT!!!!!!!!!

PHP код:

CMD
:ostats(playerid,params[])
{
    new 
name[32];
    if(
sscanf(params"s"name)) return SendClientMessage(playeridred"That user isn't registered.");
    new 
playerFile[100];
    
format(playerFile,256,"/ladmin/users/%s.sav",udb_encode(name));
    if(
fexist(playerFile))
    {
        new 
string[500];
        new 
house[50];
        new 
houseID dini_Int(playerFile"Houseid");
        new 
houseCost dini_Int(house"Cost");
        new 
houseCostStr{10];
        new 
houseIDStr[6];
        switch(
houseID)
        {
            case -
255:
            {
                
houseIDStr "N/A";
                
houseCostStr "N/A";
            }
            case default:
            {
                
format(houseIDStr,"%d"houseID);
                
format(houseCostStr10"%d"houseCost);
            }
        }
        new 
bizID dini_Int(playerFile"bowned");
        new 
bizCost =  dini_Int(house"Cost");
        new 
bizCostStr{10];
        new 
bizIDStr[6];
        switch(
bizID)
        {
            case 
0, -255:
            {
                
bizIDStrIDStr "N/A";
                
houseCostStr "N/A";
            }
            case default:
            {
                
format(bizIDStr6,"%d"bizID);
                
format(bizCostStr10"%d"bizCost);
            }
        }
        
format(house,50,"SATDM/Houses/house%d",dini_Int(playerFile"Houseid"));
        
format(string,sizeof(string),"|- Account Details -|\n\n {FFFFFF}Name: %s\nLast IP: %s\nRegistration Date: %s\nLast Time Online: %s\n\n|- User Statistics -|\n\nKills: %d ||Deaths: %d\nAdmin Level: %d ||Weed: %d\nCash: %d || Bank: %d\n\n|- House & Business -|\n\nHouse ID: %d || Cost: %d\nBusiness ID: %d || Cost %d",
        
name,dini_Get(playerFile"ip"),dini_Get(playerFile"RegisteredDate"), dini_Get(playerFile"LastOn"),dini_Int(playerFile"kills"), dini_Int(playerFile"deaths"), dini_Int(playerFile"level"),dini_Int(playerFile,"weed"), dini_Int(playerFile"money"), dini_Int(playerFile"Bank"),houseIDStr,houseCostStrbizIDStrbizCostStr);
        
ShowPlayerDialog(playerid,OFFLINE_STATS,DIALOG_STYLE_MSGBOX"{FFFF00}Offline Stats"string"OK""");
    }
    else
    {
       
SendClientMessage(playeridred"That player doesn't exist.");
    }
    return 
1;

When the command is in it tells me that there are tons of missing functions, even tho they are not missing.
I checked the brackets and everything seems to be fine, i guess.
Can anyone find mistakes?
Reply
#2

maybe give us error codes ?
and // The lines where are the errors
omg
Reply
#3

26 errors not a single is within the command , i am not dumb man.
Just check the code if u want to help me. the erros are useless.
Reply
#4

You wont fucking get it right? the errors do not belong to the commands code.
all just missing method errors, on 26 diffrent methods(maxmimum error output)
I am not dumb at all.
Reply
#5

try fix yourslf a bit.. no codes / errors no help
the fuck i can get error the whole cmd would be an error if i complie it
Reply
#6

If there are many errors so search for a bracket that isn't in its place.
Reply
#7

Dude it says there are missing methods that are never used within the code, but it is caused by the code (the errors itself arent important, dont u fucking get it?!). I just need to know what causes these wrong errors
Reply
#8

Why its hard for you to show us the error lines atleast we'll try to help you.
Reply
#9

there you go ... the useless errors
Reply
#10

Код:
new houseCostStr{10]
Tricky one.
Reply
#11

Those errors means that there is an opened bracket which has fucked this up,check the last edited codes.
Reply
#12

im think you forget closed bracket "}"
Reply
#13

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Код:
new houseCostStr{10]
Tricky one.
thank you man, didn't see that at all haha

"You must spread some Reputation around before giving it to Konstantinos again." pf -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)