19.07.2017, 19:45
O GM compilou porem gerou esses 3 warnings, como corrigi-los?
Linha:
Comando:
PHP код:
C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Fire\gamemodes\BPS.pwn(9436) : warning 202: number of arguments does not match definition
C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Fire\gamemodes\BPS.pwn(9436) : warning 202: number of arguments does not match definition
C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Fire\gamemodes\BPS.pwn(9436) : warning 202: number of arguments does not match definition
Код:
ammobox[playerid] = CreatePlayerObject(playerid, 2359, 1, 0.502411, 0.695765, 0.168214, 100.083671, 32.116867, 1.769900, 1.016777, 1.000000, 1.559558);
PHP код:
CMD:mochila(playerid, params[])
{
if (!gPlayerLogged[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб logado !");
if(PlayerInfo[playerid][pJailed] == 9)
{
SendClientMessage(playerid,COLOR_GRAD1," Vocк nгo pode usar este comando nas Celas da Administraзгo!");
return true;
}
if(!GetPVarInt(playerid, "vMochila"))
{
new string[128];
//new caixa[MAX_PLAYERS];//Isso esta no topo do GM.
format(string, sizeof(string), "* %s abriu sua mochila!", NomePlayer(playerid));
SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ShowMochila(playerid, PlayerInfo[playerid][pMochila]);
Sound(playerid, 1039, 30.0);
ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",0,1,0,0,0,0,0);
ammobox[playerid] = CreatePlayerObject(playerid, 2359, 1, 0.502411, 0.695765, 0.168214, 100.083671, 32.116867, 1.769900, 1.016777, 1.000000, 1.559558);
AttachObjectToPlayer(ammobox[playerid], playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
new Str[45];
format(Str, 45, "~y~1");
PlayerTextDrawSetString(playerid, moList1[playerid], Str);
format(Str, 45, "2");
PlayerTextDrawSetString(playerid, moList2[playerid], Str);
format(Str, 45, "3");
PlayerTextDrawSetString(playerid, moList3[playerid], Str);
format(Str, 45, "4");
PlayerTextDrawSetString(playerid, moList4[playerid], Str);
Inventario[playerid] = 1;
}
else
{
ClearAnimations(playerid);
DestroyPlayerObject(playerid, ammobox[playerid]);
HideMochila(playerid);
}
return true;
}