25.02.2010, 11:38
Hi. I want to do a command with several parameters. For example, someone typed "/p show" that displays something, someone enters "/p delete" displays something else. I have such a code is:
Error:
Код:
dcmd_p(playerid, cmdtext[]) { new tag[64]; if(sscanf(cmdtext, "u", tag)) { SendClientMessage(playerid, WHITE, "Usage /p (show,delete)"); } else { if(tag == "show") { SendClientMessage(playerid,WHITE,"adsadada:"); } } return 1; }
Quote:
error 033: array must be indexed (variable "tag") |