Need help, where am i making mistake. . .
#1

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;
                    }
                }
            }
it return ID and Name ok but Price if it is 15000 it retur 97, does any one know why?
Reply


Messages In This Thread
Need help, where am i making mistake. . . - by CoaPsyFactor - 30.07.2010, 20:00
Re: Need help, where am i making mistake. . . - by ikey07 - 30.07.2010, 20:32
Re: Need help, where am i making mistake. . . - by CoaPsyFactor - 30.07.2010, 20:43
Re: Need help, where am i making mistake. . . - by CoaPsyFactor - 30.07.2010, 20:45
Re: Need help, where am i making mistake. . . - by ikey07 - 30.07.2010, 20:58
Re: Need help, where am i making mistake. . . - by CoaPsyFactor - 30.07.2010, 21:12

Forum Jump:


Users browsing this thread: 4 Guest(s)