#1

[I]Hello,
I have been got bug, when i type /housegatepw to edit house's gate, i found all server Gates changed to the same PW [1400] Gate, i have been to change the cmd from another script but i got some errors

PHP код:
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\SU-RP Last Version\SU-RP Last Version\SU-RP\gamemodes\SURP.pwn(56910) : error 017undefined symbol "Misc_Save"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\SU-RP Last Version\SU-RP Last Version\SU-RP\gamemodes\SURP.pwn(56920) : error 017undefined symbol "Misc_Save"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\SU-RP Last Version\SU-RP Last Version\SU-RP\gamemodes\SURP.pwn(56930) : error 017undefined symbol "Misc_Save"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors

Here's the CMD

PHP код:
CMD:housegatepw(playeridparams[])
{
    new 
string[128];
    if(
isnull(params)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /housegatepw [pass]");
    if(
strlen(params) > 24)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD2" Must be 24 characters or less! ");
        return 
1;
    }
    new 
ownsgate;
    for(new 
0sizeof(GateInfo); i++)
    {
        if((
PlayerInfo[playerid][pPhousekey] == GateInfo[i][gHID]) || (PlayerInfo[playerid][pPhousekey2] == GateInfo[i][gHID]))
        {
            
ownsgate 1;
            
format(stringsizeof(string), "House Gate Password for gate %d changed to %s"iparams);
            
format(GateInfo[i][gPass], 24"%s"params);
            
SendClientMessageEx(playeridCOLOR_GRAD2string);
            
SaveGates();
        }
    }
    if(
PlayerInfo[playerid][pPhousekey] == 380)
    {
        
ownsgate 1;
        
format(stringsizeof(House380Password), "%s"params);
        
format(stringsizeof(string), "House Gate Password changed to %s"string);
        
format(House380Passwordsizeof(House380Password), "%s"params);
        
SendClientMessageEx(playeridCOLOR_GRAD2string);
        
Misc_Save();
        return 
1;
    }
    else if(
PlayerInfo[playerid][pPhousekey] == 275)
    {
        
ownsgate 1;
        
format(stringsizeof(House275Password), "%s"params);
        
format(stringsizeof(string), "House Gate Password changed to %s"string);
        
format(House275Passwordsizeof(House275Password), "%s"params);
        
SendClientMessageEx(playeridCOLOR_GRAD2string);
        
Misc_Save();
        return 
1;
    }
    else if(
PlayerInfo[playerid][pPhousekey] == 310)
    {
        
ownsgate 1;
        
format(stringsizeof(House310Password), "%s"params);
        
format(stringsizeof(string), "House Gate Password changed to %s"string);
        
format(House310Passwordsizeof(House310Password), "%s"params);
        
SendClientMessageEx(playeridCOLOR_GRAD2string);
        
Misc_Save();
        return 
1;
    }
    if(!
ownsgateSendClientMessageEx(playeridCOLOR_WHITE"* You don't own a gate");
    return 
1;
}[/
i
Reply
#2

pawn Код:
undefined symbol "Misc_Save"
Misc_Save is undefined Show us your code
Reply
#3

Quote:
Originally Posted by ScRipTerZ
Посмотреть сообщение
pawn Код:
undefined symbol "Misc_Save"
Misc_Save is undefined Show us your code
Which code you would like to see
Reply
#4

That's what happens when you copy-paste code from other scripts.

Add the Misc_Save function from the script you got it from to the one you work on because nobody can guess the code of it..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)