underworker
Эксперт
- Регистрация
- 4 Ноя 2011
- Сообщения
- 1,037
- Лучшие ответы
- 0
- Репутация
- 254
PHP:
C:\DOCUME~1\WRPS-_~1\0016~1\C58E~1\GAMEMO~1\gf.pwn(38790) : warning 202: number of arguments does not match definition
C:\DOCUME~1\WRPS-_~1\0016~1\C58E~1\GAMEMO~1\gf.pwn(38846) : warning 202: number of arguments does not match definition
C:\DOCUME~1\WRPS-_~1\0016~1\C58E~1\GAMEMO~1\gf.pwn(41637) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Warnings.
PHP:
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PHP:
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PHP:
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PHP:
if(strcmp(cmd, "/robgang", true) == 0)
{
if(IsAGang(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Введите: /robgang [id] [сумма]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Введите: /robgang [id] [сумма]");
return 1;
}
if(ots[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Грабить можно раз в час");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(5.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "[Ошибка] Вы указали свой ID"); return 1; }
if (IsAGang(playerid)) { SendClientMessage(playerid, COLOR_GREY, "Нельзя ограбить бандита..."); return 1; }
new money;
money = strval(tmp);
if(money >5000)
{
SendClientMessage(playerid, COLOR_GRAD1, "Сумма должна быть не более 5.000 долларов");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Вы попытались ограбить %s на сумму %d долларов",giveplayer,money);
SendClientMessage(playerid, COLOR_BLUE, string);
format(string, sizeof(string), "%s попытался ограбить %s", sendername, giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new robdialog[256];
format(robdialog,sizeof(robdialog), "Вас хотят ограбить на сумму %d долларов\nОтдать деньги?",money);
ShowPlayerDialog(giveplayerid,5050,DIALOG_STYLE_MSGBOX,"Ограбление", robdialog, "Да", "Нет");
robmoney[giveplayerid] = money;
robOffer[giveplayerid] = playerid;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Вы слишком далеко.");
}
}//invalid id
}
else
{
format(string, sizeof(string), "Игрок не найден", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
PHP:
if(strcmp(cmd,"/robfrisk",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsAGang(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, " Используйте: /robfrisk [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Вы не можете Обыскать себя!"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "|__________ Кошелек %s __________|", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Наличные в кошельке: %d$",GetPlayerMoney(giveplayerid));
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "%s обшманал вас",sendername);
if(IsAGang(playerid))
{
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Используйте /robgang что бы совершить ограбление");
}
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "* %s обшманал %s ", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* Этот игрок не около Вас!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* Этот игрок является Офлайновым !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* Вы не бандит !");
return 1;
}
}
return 1;
}
PHP:
else if(dialogid == 5050)
{
if(response)
{
new giveplayer[MAX_PLAYER_NAME];
new giveplayerid;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(GetPlayerMoney(playerid) < robmoney[playerid]) return SendClientMessage(playerid,COLOR_GRAD1,"У вас нет столько денег!");
format(string, sizeof(string), "Вы ограбили %s на %d долларов!",sendername, robmoney[playerid]);
SendClientMessage(robOffer[playerid], COLOR_BLUE,string);
format(string, sizeof(string), "%s'а ограбили", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GiveMoney(robOffer[playerid],robmoney[playerid]);
GiveMoney(playerid,-robmoney[playerid]);
ots[playerid] = 1;
SaveAccounts();
}
}
---------- Post added at 23:49 ---------- Previous post was at 23:42 ----------
Тема закрыта! Причина: Решил проблему сам.