if(strcmp(cmd, "/Setting", true)==0){
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_GREY, "• /Setting :фчегъ ддвгшд дшащйъ");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Name [YourName] - двгшъ щолн дайщй тбшйъ/арвмйъ");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Msn [Your@Msn.com] - двгшъ лъебъ досрв'ш щмлн");
SendClientMessage(playerid,COLOR_GREY, "• /Setting ICQ [YourICQNumber] - [щмлн [осфшйн бмбг ICQдвгшъ осфш д");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Skype [Name/OFF]-двгшъ дсчййф щмк");
SendClientMessage(playerid,COLOR_GREY, "• /DetaiLs [Playerid] - дцвъ фший ощъощ осеййн");
SendClientMessage(playerid,COLOR_GREY, "• /Setting autolog - дъзбшеъ аеиеоийъ");
return 1;
}
if(strcmp(tmp, "AutoLog", true)==0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "/Setting AutoLog ON/OFF - щйоещ");
if(strcmp(tmp, "ON", true)==0)return dini_IntSet(PlayerFile(playername),"AutoLogin",1),SendClientMessage(playerid,COLOR_WHITE, ".дотшлъ дфтймд аъ ддъзбшеъ даеиеоийъ мбг");
else if(strcmp(tmp, "OFF", true)==0)return dini_IntSet(PlayerFile(playername),"AutoLogin",0),SendClientMessage(playerid,COLOR_WHITE, ".IP бйимъ аъ афщшеъ ддъзбшеъ даеиеоийъ мфй лъебъ");
return 1;
}
if(strcmp(tmp, "Name", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "/Setting Name [YourName / OFF] - щйоещ");
if(strlen(tmp) > 9)return SendClientMessage(playerid,COLOR_WHITE, "щн йлем мдлйм тг 9 ъеейн");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"FirstName","N/A."),SendClientMessage(playerid,COLOR_WHITE, ".дсшъ аъ щок офшийк дайщййн");
dini_Set(PlayerFile(playername),"FirstName",tmp);
format(string, sizeof(string)," .\"%s\" тшлъ аъ щок дфший м",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "ICQ", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "/Setting ICQ [Number / OFF] - щйоещ");
if(!IsNumber(tmp))return SendClientMessage(playerid,COLOR_WHITE, "олйм шч осфшйн ICQ осфш");
if(strlen(tmp) > 9)return SendClientMessage(playerid,COLOR_WHITE, ".зечй ма темд тм 9 ъеейн ICQ осфш");
if(strcmp(tmp, "OFF", true)==0)return dini_IntSet(PlayerFile(playername),"ICQ",00000000),SendClientMessage(playerid,COLOR_WHITE, ".щмк офшийк дайщййн ICQ дсшъ аъ осфш д");
dini_IntSet(PlayerFile(playername),"ICQ",strval(tmp));
format(string, sizeof(string)," .\"%d\" щмк м ICQ - тшлъ аъ осфш д",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "Msn", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "/Setting Msn [ Adress / OFF] - щйоещ");
if(!ValidEmail(tmp))return SendClientMessage(playerid,COLOR_WHITE, ".ара длрс лъебъ зечйъ");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"Msn","N/A"),SendClientMessage(playerid,COLOR_WHITE, ".дсшъ аъ лъебъ досрв'ш щмк офшийк дайщййн");
dini_Set(PlayerFile(playername),"Msn",tmp);
format(string, sizeof(string)," .\"%s\" щмк м Messenger тшлъ аъ лъебъ д",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "Skype", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "/Setting Skype [ Name / OFF] - щйоещ");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"Skype","N/A"),SendClientMessage(playerid,COLOR_WHITE, ".дсшъ аъ дсчййф одфшийн дайщйн ");
dini_Set(PlayerFile(playername),"Skype",tmp);
format(string, sizeof(string)," .\"%s\" щмк м Skype тшлъ аъ лъебъ д",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
SendClientMessage(playerid,COLOR_WHITE, "/Setting [Skype/Name/ICQ/Msn] - щйоещ");
return 1;
}
pawno\include\YSI\internal\y_dohooks.inc(2501) : warning 235: public function lacks forward declaration (symbol "OnVehicleDamageStatusUpdate")
pawno\include\YSI\internal\y_dohooks.inc(2566) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
pawno\include\YSI\internal\y_dohooks.inc(3426) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
pawno\include\YSI\internal\y_dohooks.inc(3495) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
(1109) : warning 219: local variable "tmp2" shadows a variable at a preceding level
(1811) : warning 219: local variable "message" shadows a variable at a preceding level
(1824) : warning 219: local variable "message" shadows a variable at a preceding level
1109 : new tmp1[256],tmp2[256];
1811 : stock SendBotMessage(playerid,const message[])
1824 : stock SendBotitMessage(playerid,const message[])
1. Forward the public functions (explanation found on wikipedia)
2. Change the variable names, and everything related to them. |
if(strcmp(cmd, "/Setting", true)==0){
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_GREY, "• /Setting : Main command.");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Name [YourName] - Set your name.");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Msn [Your@Msn.com] - Set your Messanger adress.");
SendClientMessage(playerid,COLOR_GREY, "• /Setting ICQ [YourICQNumber] - [Numbers only!] Set your ICQ number.");
SendClientMessage(playerid,COLOR_GREY, "• /Setting Skype [Name/OFF]- Set your Skype username.");
SendClientMessage(playerid,COLOR_GREY, "• /Details [Playerid] - To see player details.");
SendClientMessage(playerid,COLOR_GREY, "• /Setting autolog - Automatic login.");
return 1;
}
if(strcmp(tmp, "AutoLog", true)==0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Usage - /Setting AutoLog ON/OFF");
if(strcmp(tmp, "ON", true)==0)return dini_IntSet(PlayerFile(playername),"AutoLogin",1),SendClientMessage(playerid,COLOR_WHITE, "System turned on Auto-login.");
else if(strcmp(tmp, "OFF", true)==0)return dini_IntSet(PlayerFile(playername),"AutoLogin",0),SendClientMessage(playerid,COLOR_WHITE, "You've turned off the auto-login by IP.");
return 1;
}
if(strcmp(tmp, "Name", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Usage - /Setting Name [YourName / OFF]");
if(strlen(tmp) > 9)return SendClientMessage(playerid,COLOR_WHITE, "Name can contain up to 9 characters.");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"FirstName","N/A."),SendClientMessage(playerid,COLOR_WHITE, "You just removed your Firstname.");
dini_Set(PlayerFile(playername),"FirstName",tmp);
format(string, sizeof(string)," You've changed your Firstname to\"%s\".",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "ICQ", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Usage - /Setting ICQ [Number / OFF]");
if(!IsNumber(tmp))return SendClientMessage(playerid,COLOR_WHITE, "ICQ number only contain numbers!");
if(strlen(tmp) > 9)return SendClientMessage(playerid,COLOR_WHITE, "ICQ number can't be more than 9 characters!");
if(strcmp(tmp, "OFF", true)==0)return dini_IntSet(PlayerFile(playername),"ICQ",00000000),SendClientMessage(playerid,COLOR_WHITE, "You just removed your ICQ number.");
dini_IntSet(PlayerFile(playername),"ICQ",strval(tmp));
format(string, sizeof(string),"You've changed your ICQ number to \"%d\".",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "Msn", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Usage - /Setting Msn [ Adress / OFF]");
if(!ValidEmail(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Please enter a valid address");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"Msn","N/A"),SendClientMessage(playerid,COLOR_WHITE, "You just removed your Messanger adress.");
dini_Set(PlayerFile(playername),"Msn",tmp);
format(string, sizeof(string),"You've changed your MSN number to \"%s\".",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
if(strcmp(tmp, "Skype", true)==0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid,COLOR_WHITE, "Usage - /Setting Skype [ Name / OFF]");
if(strcmp(tmp, "OFF", true)==0)return dini_Set(PlayerFile(playername),"Skype","N/A"),SendClientMessage(playerid,COLOR_WHITE, "You just removed your Skype username.");
dini_Set(PlayerFile(playername),"Skype",tmp);
format(string, sizeof(string),"You've changed your Skype username to \"%s\".",tmp); //tmp
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
SendClientMessage(playerid,COLOR_WHITE, "USAGE - /Setting [Skype/Name/ICQ/MSN]");
return 1;
}
You should upgrade your server to 0.3d or 0.3e. That'll fix the 'public function not forwarded' warnings.
|