23.07.2013, 14:35
Hello, I want make IF. That if is 0, wrote one text, if is more than 0 wrote next text. And my code:
Error:
Код:
CMD:t1(playerid,params[])
{
masinike[playerid]=400;
new string[6]="v";
strcat(string,masinike[playerid]);
if(string==0)
{
SendClientMessage(playerid,RAUDONA,"No units.");
}
else
{
new msg[15];
format(msg,sizeof(msg),"Is units: %d",string);
SendClientMessage(playerid,RAUDONA,msg);
}
return 1;
}
Код:
error 033: array must be indexed (variable "string")


