Issus on Server!
#1

So when i use the command /tablicki i get this " http://i.imgur.com/8mMETr0.png ", i have random letters+ numbers letters (like car's number plate). Anyone have an solution to fix this?

PHP код:
enum einfo 

MyVehTablicki[64
}; 
new 
MyVehicle[MAX_MYVEHS][einfo]; 
PHP код:
new RandTablickiBukvi[15]; 
new 
RandTablickiBroj[9]; 
PHP код:
CMD:tablicki(playerid,params[]) 

 if(
PlayerInfo[playerid][pAdmin] >= 1337
    { 
        
RandomTablickiBukvi(RandTablickiBukvi); 
        
RandomTablickiBroj(RandTablickiBroj); 
        new 
str[144]; 
        new 
vehicleid GetPlayerVehicleID(playerid); 
        new 
tablickibroj RandTablickiBukvi[5] + RandTablickiBroj[3]; 
        
MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehTablicki][0] = tablickibroj
        if(!
IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) != 0) return SCM(playerid,COLOR_GRAD1,"{FF00FF}Ne ste vozac!"); 
        
format(strsizeof (str),"{FF0000}| Vaseto vozilo: {FFFFFF}%i {FF0000}| Nova Tablicka: {FF0000}%s |",vehicleid,MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehTablicki][0]); 
        
SCM(playerid,COLOR_GRAD1,str); 
        
ZacuvajCarOwnerShip(ConvertVehIDtoDYID(vehicleid)); 
    } 
    else 
    { 
     
SendClientMessage(playeridCOLOR_GRAD1"{FF4040}[RL-RP]>>[GRESKA]:{FFFFFF} {FFFFFF}Nemozete da ja koristite ovaa komanda."); 
     } 
    return 
1

Reply
#2

Hello!

Try this:
PHP код:
format(strsizeof (str),"{FF0000}| Vaseto vozilo: {FFFFFF}%i {FF0000}| Nova Tablicka: {FF0000}%s |",vehicleid,MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehTablicki]); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)