11.11.2011, 00:29
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(35733) : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(35735) : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(3573 : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(35740) : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(35735) : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(3573 : error 033: array must be indexed (variable "TaxiMission")
D:\Documents and Settings\Lucas\Desktop\****\xureba.pwn(35740) : error 033: array must be indexed (variable "TaxiMission")
pawn Code:
//comeco do GM
new TaxiMission[MAX_PLAYERS];
//comando
dcmd_missao(playerid, params[])
{
#pragma unused params
if(Player[playerid][pJob] != TAXISTA)
return SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo й um taxista");
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб em um Taxi");
if(TaxiMission == 1) // Linha do Erro
{
TaxiMission = 0; // Linha do Erro
SendClientMessage(playerid, COLOR_GREY, "Vocк saiu da missгo e pode atender seus clientes agora");
}
else if(TaxiMission == 0) // Linha do Erro
{
TaxiMission = 1; // Linha do Erro
SendClientMessage(playerid, COLOR_GREY, "Vocк entrou na missгo de treinamento, vб atй os CheckPoints");
}
return 1;
}