30.07.2010, 20:00
pawn Код:
if(strcmp(vtmp, "buyvehicle", true) == 0){
if(IsPlayerInRangeOfPoint(playerid,5.0,-1967.774291,293.854766,34.986248)){
vehiclebuyid = strtok(cmdtext, idx);
if(strlen(vehiclebuyid) == 0){
new show = sizeof(buyablevehicles);
new show2 = show / 3;
for(new v; v<show2; v++){
vi = v * 3;
format(vtext, sizeof(vtext), "ID: %d - Name: %s, Price: %d$ | ID: %d - Name: %s, Price: %d$ | ID: %d - Name: %s, Price: %d$", buyablevehicles[vi][0], buyablevehicles[vi][1], buyablevehicles[vi][2], buyablevehicles[vi+1][0], buyablevehicles[vi+1][1], buyablevehicles[vi+1][2], buyablevehicles[vi+2][0], buyablevehicles[vi+2][1], buyablevehicles[vi+2][2]);
SendClientMessage(playerid, COLOR_YELLOW,vtext);
}
return 1;
}
}
}