08.07.2013, 00:43
Ive debugged this for like a hour and finally found what is not being called. I cant figure out why.
Everything here is not being called:
Can anyone see why?
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
for (new i=1; i < MAX_HOUSES; i++) if (pickupid == Houses[i][house_pickup])
{
Players[playerid][last_house_entrance] = i;
if (IsHouseOwnedByPlayer(playerid, i)) GameTextForPlayer(playerid, "~y~Press ~r~~k~~VEHICLE_ENTER_EXIT~ ~y~to enter your house", 3000, 3);
break;
}
for(new i; i<= MAX_VEHICLE_DEALERS; i++)
{
print("1");
if(pickupid == DealershipPickup[i])
{
print("22");
new String[1000], String2[30];
for(new n; n<= 500; n++)
{
print("333");
if(BCarInfo[n][BCDealer] == i)
{
print("4444");
format(String2,sizeof(String2),"%s - $%d\n",BCarInfo[n][BCName],BCarInfo[n][BCPrice]);
strcat(String,String2);
}
}
new DialogID = 500+i;
printf("%i",playerid);
printf("%i",DialogID);
printf("%f",DealerInfo[i][VDName]);
printf("%f",String);
ShowPlayerDialog(playerid,DialogID,DIALOG_STYLE_LIST,DealerInfo[i][VDName],String,"Buy","Cancel");
print("55555");
return 1;
}
}
return 1;
}
pawn Код:
new DialogID = 500+i;
printf("%i",playerid);
printf("%i",DialogID);
printf("%f",DealerInfo[i][VDName]);
printf("%f",String);
ShowPlayerDialog(playerid,DialogID,DIALOG_STYLE_LIST,DealerInfo[i][VDName],String,"Buy","Cancel");
print("55555");
return 1;
Can anyone see why?