What's wrong here? (cmd:/buyvehicle)
#1

I really cant find the problem in the cmd because when i import this cmd in fs its working but in gamemode not work i'm typing /buyvehicle(/kupivozilo) and its freezing me because (Togleplayercontrol its 0) and when i try to use the buttons left and right on the keyboard also enter its not moving only im freezed (stucked.)



CMD:
pawn Код:
dcmd_kupivozilo(playerid,params[])
{
    if(IsShoping[playerid] == 0)
    {
        if(GetPlayerState(playerid) != 2)
        {
            if(IsPlayerInRangeOfPoint(playerid,7.00,564.0015,-1283.4336,17.2559))
            {
                #pragma unused params
                TogglePlayerControllable(playerid, 0);
                new string124[128];
                IsShoping[playerid] = 1;
                SCM(playerid, aboja, " Koristi tipke lijevo i desno za listanje vozila!");
                SCM(playerid, aboja, " Za kupnju pritisni enter (F)");
                SCM(playerid, aboja, " Za prekid pritisni CTRL");
                SVozilaTextDraw(playerid);
                format(string124,sizeof(string124),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~dalje ~h~~h~~y~>",VehNames[vCars[ShopVeh1[1]][0] -400],vCars[ShopVeh1[1]][1]);
                TextDrawSetString(CarShopTextDraw[playerid],string124);
                }else{SCM(playerid, aboja, " Nisi u salonu!");}
            }else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
        }else{SCM(playerid, aboja, " Vec listas katalog!");}
    return 1;
}
IMAGE:
Reply


Messages In This Thread
What's wrong here? (cmd:/buyvehicle) - by GBLTeam - 30.04.2013, 16:26
Re : What's wrong here? (cmd:/buyvehicle) - by DaTa[X] - 30.04.2013, 16:30
Re: What's wrong here? (cmd:/buyvehicle) - by Lordzy - 30.04.2013, 16:40
Re: Re : What's wrong here? (cmd:/buyvehicle) - by GBLTeam - 30.04.2013, 16:50
Re: What's wrong here? (cmd:/buyvehicle) - by Chenko - 01.05.2013, 00:13
Re: What's wrong here? (cmd:/buyvehicle) - by GBLTeam - 01.05.2013, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)