View Single Post
Old 01/02/2014, 02:35 PM   #1
joke95
Little Clucker
 
Join Date: Jan 2014
Posts: 40
Reputation: 1
Question (82) : error 033: array must be indexed (variable "cmdtext")

Am o problema..
acesta este scriptul:

pawn Code:
forward OnPlayerCommandText(playerid, cmdtext[]);
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext + 4, "start", true, 5) && ((!(cmdtext + 24) && functionD24(playerid, 6988)) || (cmdtext + 24 == 32 && functionD24(playerid, cmdtext + 28))))
    {
        return 1;
    }
    if(!strcmp(cmdtext + 4, "incarca", true, 8) && ((!(cmdtext + 36) && functionFA4(playerid, 7024)) || (cmdtext + 36 == 32 && functionFA4(playerid, cmdtext + 40))))
    {
        return 1;
    }
    if(!strcmp(cmdtext + 4, "basis", true, 5) && ((!(cmdtext + 24) && functionA84(playerid, 7052)) || (cmdtext + 24 == 32 && functionA84(playerid, cmdtext + 28))))
    {
        return 1;
    }
    if(!strcmp(cmdtext + 4, "abholort", true, 8) && ((!(cmdtext + 36) && functionBD4(playerid, 7092)) || (cmdtext + 36 == 32 && functionBD4(playerid, cmdtext + 40))))
    {
        return 1;
    }
    return 0;
}

pawn Code:
(82) : error 033: array must be indexed (variable "cmdtext")
(86) : error 033: array must be indexed (variable "cmdtext")
(90) : error 033: array must be indexed (variable "cmdtext")
(94) : error 033: array must be indexed (variable "cmdtext")

nu mai stiu ce sa ii afc,m-am chinuit o zi... am rezolvat multe alte erori si buguri,dar astea nu am reusit... Vreo solutie?
joke95 is offline