Problem with scripts!
#1

Help guys i get random simbols when i use my command? Its %s ..
Picture: http://i.imgur.com/8mMETr0.png
Please help me i will be so happy if i fix this!

Code:
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


Messages In This Thread
Problem with scripts! - by Kiko12135 - 15.03.2017, 18:02
Re: Problem with scripts! - by Toroi - 15.03.2017, 18:55
Re: Problem with scripts! - by Kiko12135 - 15.03.2017, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)