31.01.2014, 10:40
[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
Here's the CMD
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 017: undefined 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 017: undefined 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 017: undefined symbol "Misc_Save"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
PHP код:
CMD:housegatepw(playerid, params[])
{
new string[128];
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /housegatepw [pass]");
if(strlen(params) > 24)
{
SendClientMessageEx(playerid, COLOR_GRAD2, " Must be 24 characters or less! ");
return 1;
}
new ownsgate;
for(new i = 0; i < sizeof(GateInfo); i++)
{
if((PlayerInfo[playerid][pPhousekey] == GateInfo[i][gHID]) || (PlayerInfo[playerid][pPhousekey2] == GateInfo[i][gHID]))
{
ownsgate = 1;
format(string, sizeof(string), "House Gate Password for gate %d changed to %s", i, params);
format(GateInfo[i][gPass], 24, "%s", params);
SendClientMessageEx(playerid, COLOR_GRAD2, string);
SaveGates();
}
}
if(PlayerInfo[playerid][pPhousekey] == 380)
{
ownsgate = 1;
format(string, sizeof(House380Password), "%s", params);
format(string, sizeof(string), "House Gate Password changed to %s", string);
format(House380Password, sizeof(House380Password), "%s", params);
SendClientMessageEx(playerid, COLOR_GRAD2, string);
Misc_Save();
return 1;
}
else if(PlayerInfo[playerid][pPhousekey] == 275)
{
ownsgate = 1;
format(string, sizeof(House275Password), "%s", params);
format(string, sizeof(string), "House Gate Password changed to %s", string);
format(House275Password, sizeof(House275Password), "%s", params);
SendClientMessageEx(playerid, COLOR_GRAD2, string);
Misc_Save();
return 1;
}
else if(PlayerInfo[playerid][pPhousekey] == 310)
{
ownsgate = 1;
format(string, sizeof(House310Password), "%s", params);
format(string, sizeof(string), "House Gate Password changed to %s", string);
format(House310Password, sizeof(House310Password), "%s", params);
SendClientMessageEx(playerid, COLOR_GRAD2, string);
Misc_Save();
return 1;
}
if(!ownsgate) SendClientMessageEx(playerid, COLOR_WHITE, "* You don't own a gate");
return 1;
}[/i]