07.03.2010, 19:00
I get these errors and i don't know what they mean?
: warning 213: tag mismatch
: error 032: array index out of bounds (variable "HouseInfo")
: warning 213: tag mismatch
: error 032: array index out of bounds (variable "HouseInfo")
: warning 213: tag mismatch
: error 032: array index out of bounds (variable "HouseInfo")if(strcmp(cmd, "/ahouseint", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX - /ahouseint [houseid] [id (1-42)]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
new id;
id = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX - /ahouseint [houseid] [id (1-42)]");
return 1;
}
new id2;
id2 = strval(tmp);
if(id2 < 1 || id2 > 42) { SendClientMessage(playerid, COLOR_WHITE, "Interior ID's 1-42."); return 1; }
if(id2 == 1)
{
HouseInfo[id][hExitX] = 235.508994;
HouseInfo[id][hExitY] = 1189.169897;
HouseInfo[id][hExitZ] = 1080.339966;
HouseInfo[id][ExitInterior] = 3;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms/clone of House 9.", id,id2);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 2)
{
HouseInfo[id][hExitX] = 225.756989;
HouseInfo[id][hExitY] = 1240.000000;
HouseInfo[id][hExitZ] = 1082.149902;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Medium/1 story/1 bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 3)
{
HouseInfo[id][hExitX] = 223.043991;
HouseInfo[id][hExitY] = 1289.259888;
HouseInfo[id][hExitZ] = 1082.199951;
HouseInfo[id][ExitInterior] = 1;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 4)
{
HouseInfo[id][hExitX] = 225.630997; HouseInfo[id][hExitY] = 1022.479980; HouseInfo[id][hExitZ] = 1084.069946;
HouseInfo[id][ExitInterior] = 7;
format(string, sizeof string, "House ID: %d - Description: VERY Large/2 story/4 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 5)
{
HouseInfo[id][hExitX] = 295.138977; HouseInfo[id][hExitY] = 1474.469971; HouseInfo[id][hExitZ] = 1080.519897;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/2 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 6)
{
HouseInfo[id][hExitX] = 328.493988; HouseInfo[id][hExitY] = 1480.589966; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/2 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 7)
{
HouseInfo[id][hExitX] = 385.803986; HouseInfo[id][hExitY] = 1471.769897; HouseInfo[id][hExitZ] = 1080.209961;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom/NO BATHROOM.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 8)
{
HouseInfo[id][hExitX] = 375.971985; HouseInfo[id][hExitY] = 1417.269897; HouseInfo[id][hExitZ] = 1081.409912;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 9)
{
HouseInfo[id][hExitX] = 490.810974; HouseInfo[id][hExitY] = 1401.489990; HouseInfo[id][hExitZ] = 1080.339966;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 10)
{
HouseInfo[id][hExitX] = 447.734985; HouseInfo[id][hExitY] = 1400.439941; HouseInfo[id][hExitZ] = 1084.339966;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Medium/1 story/2 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 11)
{
HouseInfo[id][hExitX] = 227.722992; HouseInfo[id][hExitY] = 1114.389893; HouseInfo[id][hExitZ] = 1081.189941;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/4 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 12)
{
HouseInfo[id][hExitX] = 260.983978; HouseInfo[id][hExitY] = 1286.549927; HouseInfo[id][hExitZ] = 1080.299927;
HouseInfo[id][ExitInterior] = 4;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 13)
{
HouseInfo[id][hExitX] = 221.666992; HouseInfo[id][hExitY] = 1143.389893; HouseInfo[id][hExitZ] = 1082.679932;
HouseInfo[id][ExitInterior] = 4;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom/NO BATHROOM!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 14)
{
HouseInfo[id][hExitX] = 27.132700; HouseInfo[id][hExitY] = 1341.149902; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 10;
format(string, sizeof string, "House ID: %d - Description: Medium/2 story/1 bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 15)
{
HouseInfo[id][hExitX] = -262.601990; HouseInfo[id][hExitY] = 1456.619995; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 4;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/1 bedroom/NO BATHROOM!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 16)
{
HouseInfo[id][hExitX] = 22.778299; HouseInfo[id][hExitY] = 1404.959961; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Medium/1 story/2 bedrooms/NO BATHROOM or DOORS!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 17)
{
HouseInfo[id][hExitX] = 140.278000; HouseInfo[id][hExitY] = 1368.979980; HouseInfo[id][hExitZ] = 1083.969971;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/4 bedrooms/NO BATHROOM!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 18)
{
HouseInfo[id][hExitX] = 234.045990; HouseInfo[id][hExitY] = 1064.879883; HouseInfo[id][hExitZ] = 1084.309937;
HouseInfo[id][ExitInterior] = 6;
format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 19)
{
HouseInfo[id][hExitX] = -68.294098; HouseInfo[id][hExitY] = 1353.469971; HouseInfo[id][hExitZ] = 1080.279907;
HouseInfo[id][ExitInterior] = 6;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/NO BEDROOM!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 20)
{
HouseInfo[id][hExitX] = -285.548981; HouseInfo[id][hExitY] = 1470.979980; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: 1 bedroom/living room/kitchen/NO BATHROOM", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 21)
{
HouseInfo[id][hExitX] = -42.581997; HouseInfo[id][hExitY] = 1408.109985; HouseInfo[id][hExitZ] = 1084.449951;
HouseInfo[id][ExitInterior] = 8;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/NO BEDROOM!", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 22)
{
HouseInfo[id][hExitX] = 83.345093; HouseInfo[id][hExitY] = 1324.439941; HouseInfo[id][hExitZ] = 1083.889893;
HouseInfo[id][ExitInterior] = 9;
format(string, sizeof string, "House ID: %d - Description: Medium/2 story/2 bedrooms", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 23)
{
HouseInfo[id][hExitX] = 260.941986; HouseInfo[id][hExitY] = 1238.509888; HouseInfo[id][hExitZ] = 1084.259888;
HouseInfo[id][ExitInterior] = 9;
format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 24)
{
HouseInfo[id][hExitX] = 244.411987; HouseInfo[id][hExitY] = 305.032990; HouseInfo[id][hExitZ] = 999.231995;
HouseInfo[id][ExitInterior] = 1;
format(string, sizeof string, "House ID: %d - Description: Denise's Bedroom", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 25)
{
HouseInfo[id][hExitX] = 271.884979; HouseInfo[id][hExitY] = 306.631989; HouseInfo[id][hExitZ] = 999.325989;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Katie's Bedroom", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 26)
{
HouseInfo[id][hExitX] = 291.282990; HouseInfo[id][hExitY] = 310.031982; HouseInfo[id][hExitZ] = 999.154968;
HouseInfo[id][ExitInterior] = 3;
format(string, sizeof string, "House ID: %d - Description: Helena's Bedroom (barn) - limited movement.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 27)
{
HouseInfo[id][hExitX] = 302.181000; HouseInfo[id][hExitY] = 300.722992; HouseInfo[id][hExitZ] = 999.231995;
HouseInfo[id][ExitInterior] = 4;
format(string, sizeof string, "House ID: %d - Description: Michelle's Bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 28)
{
HouseInfo[id][hExitX] = 322.197998; HouseInfo[id][hExitY] = 302.497986; HouseInfo[id][hExitZ] = 999.231995;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Barbara's Bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 29)
{
HouseInfo[id][hExitX] = 346.870025; HouseInfo[id][hExitY] = 309.259033; HouseInfo[id][hExitZ] = 999.155700;
HouseInfo[id][ExitInterior] = 6;
format(string, sizeof string, "House ID: %d - Description: Millie's Bedroom.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 30)
{
HouseInfo[id][hExitX] = 2496.049805; HouseInfo[id][hExitY] = -1693.929932; HouseInfo[id][hExitZ] = 1014.750000;
HouseInfo[id][ExitInterior] = 3;
format(string, sizeof string, "House ID: %d - Description: CJ's Mom's House.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 31)
{
HouseInfo[id][hExitX] = 1263.079956; HouseInfo[id][hExitY] = -785.308960; HouseInfo[id][hExitZ] = 1091.959961;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Madd Dogg's Mansion (West door).", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 32)
{
HouseInfo[id][hExitX] = 2464.109863; HouseInfo[id][hExitY] = -1698.659912; HouseInfo[id][hExitZ] = 1013.509949;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Ryder's house.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 33)
{
HouseInfo[id][hExitX] = 2526.459961; HouseInfo[id][hExitY] = -1679.089966; HouseInfo[id][hExitZ] = 1015.500000;
HouseInfo[id][ExitInterior] = 1;
format(string, sizeof string, "House ID: %d - Description: Sweet's House (South side of house is fucked).", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 34)
{
HouseInfo[id][hExitX] = 2543.659912; HouseInfo[id][hExitY] = -1303.629883; HouseInfo[id][hExitZ] = 1025.069946;
HouseInfo[id][ExitInterior] = 2;
format(string, sizeof string, "House ID: %d - Description: Big Smoke's Crack Factory (Ground Floor).", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 35)
{
HouseInfo[id][hExitX] = 744.542969; HouseInfo[id][hExitY] = 1437.669922; HouseInfo[id][hExitZ] = 1102.739990;
HouseInfo[id][ExitInterior] = 6;
format(string, sizeof string, "House ID: %d - Description: Fanny Batter's Whore House.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 36)
{
HouseInfo[id][hExitX] = 964.106995; HouseInfo[id][hExitY] = -53.205498; HouseInfo[id][hExitZ] = 1001.179993;
HouseInfo[id][ExitInterior] = 3;
format(string, sizeof string, "House ID: %d - Description: Tiger Skin Rug Brothel.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 37)
{
HouseInfo[id][hExitX] = 2350.339844; HouseInfo[id][hExitY] = -1181.649902; HouseInfo[id][hExitZ] = 1028.000000;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Burning Desire Gang House.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 38)
{
HouseInfo[id][hExitX] = 2807.619873; HouseInfo[id][hExitY] = -1171.899902; HouseInfo[id][hExitZ] = 1025.579956;
HouseInfo[id][ExitInterior] = 8;
format(string, sizeof string, "House ID: %d - Description: Colonel Furhberger's House.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 39)
{
HouseInfo[id][hExitX] = 318.564972; HouseInfo[id][hExitY] = 1118.209961; HouseInfo[id][hExitZ] = 1083.979980;
HouseInfo[id][ExitInterior] = 5;
format(string, sizeof string, "House ID: %d - Description: Crack Den.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 40)
{
HouseInfo[id][hExitX] = 2324.419922; HouseInfo[id][hExitY] = -1147.539917; HouseInfo[id][hExitZ] = 1050.719971;
HouseInfo[id][ExitInterior] = 12;
format(string, sizeof string, "House ID: %d - Description: Unused Safe House.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 41)
{
HouseInfo[id][hExitX] = 446.622986; HouseInfo[id][hExitY] = 509.318970; HouseInfo[id][hExitZ] = 1001.419983;
HouseInfo[id][ExitInterior] = 12;
format(string, sizeof string, "House ID: %d - Description: Budget Inn Motel Room.", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
else if(id2 == 42)
{
HouseInfo[id][hExitX] = 2216.339844; HouseInfo[id][hExitY] = -1150.509888; HouseInfo[id][hExitZ] = 1025.799927;
HouseInfo[id][ExitInterior] = 15;
format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
SendClientMessage(playerid, COLOR_GREEN,string);
}
SaveHouses();
}
else
{
SendClientMessage(playerid, COLOR_WHITE, BAD_ADMIN_MESSAGE);
}
}
}
return 1;
}
|
Originally Posted by Frank_Martinez
I get these errors and i don't know what they mean?
|