30.12.2012, 18:45
i have a problem,i have this
but te problem is that is show me only Flying License,where is the mistake?
Код:
if(strcmp(cmd,"/licenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
new pzbori = PlayerInfo[playerid][pzbor];
new pvapori = PlayerInfo[playerid][pvapor];
new ppestei = PlayerInfo[playerid][ppeste];
new parmai = PlayerInfo[playerid][parma];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pzbor] == 0)
{
PlayerInfo[playerid][pFlyLic] = 0;
format(string, sizeof(string), "** Flying License: Expired[%d/10].",pzbori);
SendClientMessage(playerid, COLOR_LICENSES, string);
return 1;
}
else
{
format(string, sizeof(string), "** Flying License: Avaible[%d/10].",pzbori);
SendClientMessage(playerid, COLOR_LICENSES, string);
return 1;
}
if(PlayerInfo[ia][ppeste] == 0)
{
PlayerInfo[playerid][pFlyLic] = 0;
format(string, sizeof(string), "** Fishing License: Expired[%d/10].",ppestei);
SendClientMessage(playerid, COLOR_LICENSES, string);
return 1;
}
else
{
format(string, sizeof(string), "** Fishing License: Avaible[%d/10].",ppestei);
SendClientMessage(playerid, COLOR_LICENSES, string);
return 1;
}
}
}
return 1;
}


