02.06.2012, 17:44
Hey there, I just working on another Register&Login command, now with details function!
When a player type /setting the server crashing.
Here's the command :
Warnings -
When a player type /setting the server crashing.
Here's the command :
pawn Код:
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;
}
pawn Код:
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
pawn Код:
1109 : new tmp1[256],tmp2[256];
1811 : stock SendBotMessage(playerid,const message[])
1824 : stock SendBotitMessage(playerid,const message[])