08.01.2013, 22:38
Buenas a Todos, Me pueden ayudar con este error.
desde ya muchas Gracias.
pawn Код:
#include <a_samp>
new bool:variable[MAX_PLAYERS][1];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(!detectar(playerid, variable, 0, 5)) return 1;
//Funcion
return 1;
}
return 0;
}
stock detectar(playerid, array[], zize1, zize2)
{
new count=0;
for(new i=0; i<GetMaxPlayers(); i++)
if(IsPlayerConnected(i) && array[i][zize1] != false && array[playerid][zize1] != true) count++;
if(count == zize2) return 1;
return 0;
}
/*
(9) : if(!detectar(playerid, variable, 0, 5)) return 1;
(20) : if(IsPlayerConnected(i) && array[i][zize1] != false && array[playerid][zize1] != true) count++;
(9) : error 048: array dimensions do not match
(20) : error 001: expected token: ")", but found "["
(20) : error 029: invalid expression, assumed zero
(20) : warning 215: expression has no effect
(20) : error 001: expected token: ";", but found "]"
(20) : fatal error 107: too many error messages on one line
/*