04.06.2015, 02:54
Код:
2\Desktop\gamemode\gamemodes\BUL.pwn(37176) : error 006: must be assigned to an array C:\Users\2\Desktop\gamemode\gamemodes\BUL.pwn(37182) : error 035: argument type mismatch (argument 1) C:\Users\2\Desktop\gamemode\gamemodes\BUL.pwn(37186) : error 006: must be assigned to an array C:\Users\2\Desktop\gamemode\gamemodes\BUL.pwn(37187) : error 006: must be assigned to an array C:\Users\2\Desktop\gamemode\gamemodes\BUL.pwn(37187) : warning 204: symbol is assigned a value that is never used: "Material"
PHP код:
if (strcmp(cmd, "/materialorg", true) == 0)
{
new org, Material;
org = strtok(cmdtext, idx); //1 erro aqui
Material = strval(tmp);
if (!strlen(tmp))
{
return SendClientMessage(playerid, COLOR_WHITE, "USE: /materialorg [Organizaзгo] [Quantia]");
}
if (!strlen(Material)) //1 erro aqui
{
return SendClientMessage(playerid, COLOR_WHITE, "USE: /materialorg [Organizaзгo] [Quantia]");
}
org = strtok(cmdtext, idx); //1 erro aqui
Material = strtok(cmdtext, idx); //2 erro aqui
if (PlayerInfo[playerid][pAdmin] >= 5)
{
if (PlayerInfo[playerid][pAdminStats] != 0 && PlayerInfo[playerid][pAdmin] <= 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк nгo estб no modo admin! (/trabalhar)");
return true;
}
DepositarMaterialOrg(org, Material);
format(string, sizeof(string), "Vocк depositou %d de materias no\ncofre da organizaзгo id %d", Material, org);
ShowPlayerDialog(playerid, DIALOG0, DIALOG_STYLE_MSGBOX, "Materiais", string, "Fechar", "");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк nгo tem nнvel administrativo suficiente.");
}
return true;
}