23.08.2016, 18:59
Hello Guys, i have got this erorrs while iaam making my new Script today and i tried more thinngs but i can't fix it please can anyone help me ??
ERRORS:
Код:
CMD:datm(playerid,params[])
{
new str1[255], atm[250];
if(IsPlayerAdmin(playerid)) {
if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /datm [ATM ID]");
format(atm, sizeof(atm), "ATMs/atmid%d",params);
if(dini_Exists(atm))
{
dini_Remove(atm);
DestroyDynamicObject(ATMInfo[params][aObje]);
catm-=1;
UpdateDynamic3DTextLabelText(ATMInfo[params][aLabel],0xFF0000FF,"");
DestroyDynamicMapIcon(ATMInfo[params][aMicon]);
} else SendClientMessage(playerid, red, "ERROR: There's no ATM Pranch Exists on our Database with this ID")
} else SendClientMessage(playerid, -1, "");
return 1;
}
Код:
(51749) : error 033: array must be indexed (variable "params") (51751) : error 033: array must be indexed (variable "params") (51752) : error 033: array must be indexed (variable "params") (51754) : error 001: expected token: ";", but found "}" (51742) : warning 204: symbol is assigned a value that is never used: "str1"


