25.12.2010, 16:00
Hey, i found a little little problem at function GetVType:
You decleared 8 arrays ( with vehicles )
The first 4, for loops, must be <= , not only <
The next 4 for loops, are correct:
You decleared 8 arrays ( with vehicles )
pawn Код:
new Convertibles[4] = {480, 533, 439, 555};
new Industrial[26] = {499, 422, 482, 498, 609, 524, 578, 455, 403, 414, 582, 443, 514, 413, 515, 440, 543, 605, 459, 531, 408, 552, 478, 456, 554};
new LowRider[8] = {536, 575, 534, 567, 535, 566, 576, 412};
new OffRoad[13] = {568, 424, 573, 579, 400, 500, 444, 556, 557, 470, 489, 505, 595};
new Service[19] = {416, 433, 431, 438, 437, 523, 427, 490, 528, 407, 544, 596, 596, 597, 598, 599, 432, 601, 420};
new Saloon[35] = {445, 504, 401, 518, 527, 542, 507, 562, 585, 419, 526, 604, 466, 492, 474, 546, 517, 410, 551, 516, 467, 600, 426, 436, 547, 405, 580, 560, 550, 549, 540, 491, 529, 421};
new Sports[20] = {602, 429, 496, 402, 541, 415, 589, 587, 565, 494, 502, 503, 411, 559, 603, 475, 506, 451, 558, 477};
new Wagons[5] = {418, 404, 479, 458, 561};
pawn Код:
for(i=0;i<3;i++){
if(Convertibles[i]==modelid) return 1;
}
for(i=0;i<25;i++){
if(Industrial[i]==modelid) return 1;
}
for(i=0;i<7;i++){
if(LowRider[i]==modelid) return 1;
}
for(i=0;i<12;i++){
if(OffRoad[i]==modelid) return 1;
}
pawn Код:
for(i=0;i<19;i++){
if(Service[i]==modelid) return 1;
}
for(i=0;i<35;i++){
if(Saloon[i]==modelid) return 1;
}
for(i=0;i<20;i++){
if(Sports[i]==modelid) return 1;
}
for(i=0;i<5;i++){
if(Wagons[i]==modelid) return 1;
}