- Регистрация
- 6 Май 2012
- Сообщения
- 286
- Лучшие ответы
- 0
- Репутация
- 6
PHP:
if(strcmp(cmd,"/kaznawithdraw",true)==0)
{
new money;
if(PlayerInfo[playerid][pLeader] != 7) return SendClientMessage(playerid, COLOR_GRAD1, "Âû íå ìýð!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå: /kaznawithdraw [cóììà]");
if(PlayerInfo[playerid][pLeader] == 7 )
{
money = strval(tmp);
{
if(FracBank[0][fKazna] == 0) { SendClientMessage(playerid, COLOR_GREY, "Â êàçíå íåò äåíåã"); return 1; }
if(FracBank[0][fKazna] < money) { SendClientMessage(playerid, COLOR_GREY, "Â êàçíå íåò ñòîëüêî äåíåã"); return 1; }
if(money > 100000000 || money < 1) { SendClientMessage(playerid, COLOR_GREY, "Íåïðàâèëüíûé êîëè÷åñòâî äåíåã!"); return 1; }
FracBank[0][fKazna] -= money;
PlayerInfo[playerid][pCash] +=money;
format(string, sizeof(string), "Âû ñíÿëè ñ êàçíû Ìýðèè: %d âèðò", money);
SendClientMessage(playerid, 0x6495EDFF, string);
}
}
return 1;
}
else if(strcmp(cmd,"/kaznaput",true)==0)
{
if(IsPlayerConnected(playerid))
{
new money;
if(PlayerInfo[playerid][pMember] == 7)
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /kaznaput [Количество]");
if(PlayerInfo[playerid][pMember] == 7)
{
money = strval(tmp);
{
if(PlayerInfo[playerid][pCash] < money) { SendClientMessage(playerid, COLOR_GREY, "У вас нет столько денег!"); return 1; }
if(money > 1000000 || money < 1) { SendClientMessage(playerid, COLOR_GREY, "Неправильное количество денег!"); return 1; }
FracBank[0][fKazna] += money;
PlayerInfo[playerid][pCash] -=money;
format(string, sizeof(string), "Вы положили в Казну: %d вирт", money);
SendClientMessage(playerid, 0x6495EDFF, string);
}
}
}
return 1;
}
D:\мод\RolePlay.pwn(29780) : warning 217: loose indentation
D:\мод\RolePlay.pwn(29796) : warning 217: loose indentation
D:\мод\RolePlay.pwn(29819) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.