What's Wrong here.. why is it giving a warning (Warning 213: tag mismatch) Here:
and its also giving this warning: error 047: array sizes do not match, or destination array is too small
Here
PHP Code:
//My Enums
enum hinfo
{
id,
Cost,
Owner[MAX_PLAYER_NAME],
bool:hBought,
VW,
Interior,
Float:extX,
Float:extY,
Float:extZ,
Float:intX,
Float:intY,
Float:intZ,
hpickup,
htext,
};
new pHouse[MAX_HOUSES][hinfo];
PHP Code:
/*>>>---Here--->>>>*/UpdateDynamic3DTextLabelText(pHouse[i][htext],0x00B900AF,str5);
PHP Code:
forward CreateHouse(hid, cost, Float:x, Float:y, Float:z, bool:Bought,hOwner[24]);
public CreateHouse(hid, cost, Float:x, Float:y, Float:z, bool:Bought,hOwner[24])
{
pHouse[hid][hpickup]=CreateDynamicPickup(1273,1,x,y,z);
if(Bought)
{
new str1[128];
format(str1,sizeof(str1),"House Owner: %s\nHID: %d",hOwner,hid);
/*>>>---Here--->>>>*/ pHouse[hid][htext]=CreateDynamic3DTextLabel(str1,0x00B900AF,x,y,z+1,5);
}
if(!Bought)
{
new str2[128];
format(str2,sizeof(str2),"House for Sale\nCost: $%d\nHID: %d",cost,hid);
/*>>>>and Here--->>>>*/pHouse[hid][htext]=CreateDynamic3DTextLabel(str2,0x00B900AF,x,y,z+1,5);
}
return 1;
}
and its also giving this warning: error 047: array sizes do not match, or destination array is too small
Here
PHP Code:
if(pHouse[i][id]==0)
{
pHouse[i][id]=CreateHouse(i,cost,x,y,z,false,"NULL");
pHouse[i][Cost]=cost;
pHouse[i][hBought]=false;
/*Here-->*/pHouse[i][Owner]="NULL";
pHouse[i][VW]=GetPlayerVirtualWorld(playerid);
pHouse[i][extX]=x;
pHouse[i][extY]=y;
pHouse[i][extZ]=z;
new str3[123];
format(str3, sizeof(str3),"{E85656}[House Created]{FFFFFF} You have successfully created House(ID:%d) Cost: $%d",i,cost);
SendClientMessage(playerid, COLOR_YELLOW,str3);
break;
}
Aucun commentaire:
Enregistrer un commentaire