shape1
shape2
shape3
shape4
shape7
shape8

Unknown Command

Статус
Закрыто для дальнейших ответов.

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
1
271
0
22
В общем проблема такова,ввожу команду и мне пишет что нету такой команды

 if(strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
        ShowStats(playerid,playerid);
        }
return 1;
}
Вот код,помогите пожалуйста
 

Sten

Unknown
Пользователь
08.05.2014
830
77
0
найдите в моде showstats
И кинь сюда

 
Последнее редактирование модератором:

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
1
271
0
22
найдите в моде showstats

И кинь сюда
stock ShowStats(playerid,targetid)

{

if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))

{

new cash = Player[targetid][pMoney];

new atext[20];

if(Player[targetid][pSex] == 1) { atext = "Ïàðåíü"; }

else if(Player[targetid][pSex] == 2) { atext = "Äåâóøêà"; }

new ttext[35];

if(Player[targetid][pMember] == 0|| Player[targetid][pLeader] == 0) { ttext = "Ãðàæäàíñêèé"; }

else if(Player[targetid][pMember] == 1 || Player[targetid][pLeader] == 1) { ttext = "Ïîëèöèÿ"; }

else if(Player[targetid][pMember] == 2 || Player[targetid][pLeader] == 2) { ttext = "Àðìèÿ"; }

new rtext[64];

//------------------------------------------------------------------------------

if(Player[targetid][pMember] == 1 || Player[targetid][pLeader] == 1)

{

switch(Player[targetid][pRank])

{

case 18:rtext = "Ãåíåðàë-Ïîëêîâíèê";

case 17:rtext = "Ãåíåðàë-Ëåéòåíàíò";

case 16:rtext = "Ãåíåðàë-Ìàéîð";

case 15:rtext = "Ïîëêîâíèê";

case 14:rtext = "Ïîäïîëêîâíèê";

case 13:rtext = "Ìàéîð";

case 12:rtext = "Êàïèòàí";

case 11:rtext = "Ñòàðøèé ëåéòåíàíò";

case 10:rtext = "Ëåéòåíàíò";

case 9:rtext = "Ìëàäøèé ëåéòåíàíò";

case 8:rtext = "Ñòàðøèé ïðàïîðùèê";

case 7:rtext = "Ïðàïîðùèê";

case 6:rtext = "Ñòàðøèíà";

case 5:rtext = "Ñòàðøèé ñåðæàíò";

case 4:rtext = "Ñåðæàíò";

case 3:rtext = "Ìëàäøèé ñåðæàíò";

case 2:rtext = "Åôðåéòîð";

case 1:rtext = "Ðÿäîâîé";

default:rtext = "Ðÿäîâîé";

}

}

//------------------------------------------------------------------------------

else if(Player[targetid][pMember] == 2 || Player[targetid][pLeader] == 2)

{

switch(Player[targetid][pRank])

{

case 18:rtext = "Ãåíåðàë-Ïîëêîâíèê";

case 17:rtext = "Ãåíåðàë-Ëåéòåíàíò";

case 16:rtext = "Ãåíåðàë-Ìàéîð";

case 15:rtext = "Ïîëêîâíèê";

case 14:rtext = "Ïîäïîëêîâíèê";

case 13:rtext = "Ìàéîð";

case 12:rtext = "Êàïèòàí";

case 11:rtext = "Ñòàðøèé ëåéòåíàíò";

case 10:rtext = "Ëåéòåíàíò";

case 9:rtext = "Ìëàäøèé ëåéòåíàíò";

case 8:rtext = "Ñòàðøèé ïðàïîðùèê";

case 7:rtext = "Ïðàïîðùèê";

case 6:rtext = "Ñòàðøèíà";

case 5:rtext = "Ñòàðøèé ñåðæàíò";

case 4:rtext = "Ñåðæàíò";

case 3:rtext = "Ìëàäøèé ñåðæàíò";

case 2:rtext = "Åôðåéòîð";

case 1:rtext = "Ðÿäîâîé";

default:rtext = "Ðÿäîâîé";

}

}

//------------------------------------------------------------------------------

new jtext[20];

if(Player[targetid][pJob] == 1) { jtext = "Äàëüíîáîéùèê"; }

else if(Player[targetid][pJob] == 2) { jtext = "Ìåõàíèê"; }

else { jtext = "Áåçðàáîòíûé"; }

//------------------------------------------------------------------------------

new drank[20];

switch(Player[targetid][pVip])

{

case 0: drank = "Íåòó";

case 1: drank = "Áðîíçîâûé";

case 2: drank = "Ñåðåáðåíûé";

case 3: drank = "Çîëîòîé";

default: drank = "Íåò";

}

//------------------------------------------------------------------------------

new admlvl[20];

switch(Player[targetid][pAdmin])

{

case 0: admlvl = "Íåòó";

case 1: admlvl = "Àäìèíèñòðàòîð(1)";

case 2: admlvl = "Àäìèíèñòðàòîð(2)";

case 3: admlvl = "Àäìèíèñòðàòîð(3)";

case 4: admlvl = "Àäìèíèñòðàòîð(4)";

case 5: admlvl = "Àäìèíèñòðàòîð(5)";

case 6: admlvl = "Àäìèíèñòðàòîð(6)";

case 7: admlvl = "Àäìèíèñòðàòîð(7)";

case 8: admlvl = "Àäìèíèñòðàòîð(8)";

case 9: admlvl = "Çàì.Îñíîâàòåëÿ";

case 10: admlvl = "Îñíîâàòåëü Ìîäà";

default: admlvl = "Íåòó";

}

//------------------------------------------------------------------------------

new level = Player[targetid][pLevel];// Ëâë

new exp = Player[targetid][pExp];// Ðåñïåêòû

new account = Player[targetid][pBank];

new nxtlevel = Player[targetid][pLevel]+1;

new expamount = nxtlevel*levelexp;//

new warns = Player[targetid][pWarns];// Êîë-âî Âàðíîâ

new playerip[256];// IP Adres

GetPlayerIp(targetid, playerip, sizeof(playerip));// IP Adres

new name[MAX_PLAYER_NAME];

GetPlayerName(targetid, name, sizeof(name));

new str[128],sctring[2000];

format(str,sizeof(str),"{ffa500}_______________________________________________________________\n\n");

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Íèêíåéì: \t\t\t\t{ffffff}%s \n\n",name);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Óðîâåíü: \t\t\t{ffffff}%d \n",level);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Ðåñïåêòû: \t\t\t{ffffff}%d/%d \n",exp,expamount);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}VIP àêêàóíò: \t\t\t{ffffff}%s \n",drank);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Àäìèí Óðîâåíü: \t\t{ffffff}%s \n",admlvl);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{FFFFFF}____________________________________________\n");

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Ïîë: \t\t\t\t{ffffff}%s \n",atext);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Ïðåäóïðåæäåíèé: \t\t{ffffff}%d/3 \n",warns);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{FFFFFF}____________________________________________\n");

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Ðàáîòà: \t\t\t{ffffff}%s \n",jtext);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Îðãàíèçàöèÿ: \t\t\t{ffffff}%s \n",ttext);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Ðàíã: \t\t\t\t{ffffff}%s \n",rtext); ///

strcat(sctring,str);

format(str,sizeof(str),"\t\t{FFFFFF}____________________________________________\n");

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Äåíåã: \t\t\t\t{ffffff}%d ðóá \n",cash);

strcat(sctring,str);

format(str,sizeof(str),"\t\t{00FF00}Äåíåã â áàíêå: \t\t\t{ffffff}%d ðóá \n",account);

strcat(sctring,str);

format(str,sizeof(str),"{00FF00}_______________________________________________________________\n");

strcat(sctring,str);

new lol[256];

format(lol,sizeof(lol),"Ñòàòèñòèêà èãðîâîãî àêêàóíòà:");

ShowPlayerDialog(playerid,23,DIALOG_STYLE_MSGBOX,lol,sctring,"Îê","Îòìåíà");

}

}
 

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
1
271
0
22
ну что никто не знает?

 

Mirex

Руководитель проекта
Команда портала
Гл.Администратор
Золотой
21.12.2013
2 513
3
550
0
26
definehost.ru
Скриптер
В конце паблика OnPlayerCommandText что стоит? return 1?

 
Статус
Закрыто для дальнейших ответов.