Help This Command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help This Command (
/showthread.php?tid=417337)
Help This Command -
Daniel_Ruiz - 20.02.2013
Well look'm Spanish area but could not fix these mistakes and maybe you could help me?
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"
This is the Command:
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;
}
Re: Help This Command -
ikey07 - 20.02.2013
Mistake is here I believe: new fleader = Info[playerid][
fINFO]; it should be
pLeader instead isnt?
Respuesta: Help This Command -
Daniel_Ruiz - 20.02.2013
I mean that if I have it set before?
Respuesta: Help This Command -
Daniel_Ruiz - 20.02.2013
Please Help.