20.02.2013, 19:29
Well look'm Spanish area but could not fix these mistakes and maybe you could help me?
This is the Command:
pawn Код:
(32432) : error 033: array must be indexed (variable "fINFO")
(32434) : warning 219: local variable "fINFO" shadows a variable at a preceding level
(32435) : error 033: array must be indexed (variable "fINFO")
(32435) : error 033: array must be indexed (variable "fINFO")
(32445) : error 017: undefined symbol "pFLeader"
(32446) : error 017: undefined symbol "pFRank"
pawn Код:
CMD:fmiembros(playerid, params[])
{
new fmember = Info[playerid][pFMember];
new fleader = Info[playerid][fINFO];
new fteamnumber;
new fINFO[256];
if (Info[playerid][fINFO] != 0) fteamnumber = Info[playerid][fINFO];
else if (Info[playerid][pFMember] != 0) fteamnumber = Info[playerid][pFMember];
if(fmember > 0 || fleader > 0)
{
SendClientMessageEx(playerid, COLOR_GENERAL, "Familiares Conectados:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[32];
if (IsPlayerConnected(i))
{
if (Info[i][pFLeader] == fteamnumber) format(string, sizeof(string), "%s (Lнder)",GetPlayerNameEx(i));
else if (Info[i][pFMember] == fteamnumber) format(string, sizeof(string), "%s, Rango: %d.",GetPlayerNameEx(i), Info[i][pFRank]);
if(strlen(string) > 0) SendClientMessageEx(playerid, COLOR_GRAD2, string);
}
}
}
else SendClientMessageEx(playerid, COLOR_GRAD2, "No perteneces a ninguna facciуn.");
return 1;
}