Jump to content
  • 0
Sign in to follow this  
BereRece

Probleme YCMD:rac

Question

Buna Seara, am si eu o problemca cu, YCMD:rac atasez si cmd dar nush care sa fie problema cand dau "/rac" nu se respawneaza masiniile dc?

Citat

YCMD:rac(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, COLOR_WHITE, AdminOnly);
     new string[180];
    for(new car = 0; car < 252; car++) {
        if(IsValidVehicle(car)) {
            if(!VehicleHaveDriver(car)) SetVehicleToRespawn(car);
        }
    }
    format(string, sizeof(string), "({FF0000}Admin Info{FFFFFF}) %s a respawnat toate vehiculele nefolosite!", GetName(playerid));
    SendAdminMessage(COLOR_WHITE, string, 3);
    return true;
}

stock VehicleHaveDriver(car) {
    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerInVehicle(i, car)) return true;
    }
    return false;
}

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Ce modificari ai facut inainte?

Ia in calcul functia " for(new car = 0; car < 252; car++) " in special, cred ca ai dat ceva peste cap in trecut.


Servicii Scripting / Web Development echitabile, contra-cost!

Discord: Eyser#5857

The best of the best!

Share this post


Link to post
Share on other sites
  • 0
Acum 23 ore, Demonik a spus:

Buna Seara, am si eu o problemca cu, YCMD:rac atasez si cmd dar nush care sa fie problema cand dau "/rac" nu se respawneaza masiniile dc?

 

schimba 252 cu MAX_VEHICLES

Share this post


Link to post
Share on other sites
  • 0

Doresc tot aici in topciu asta sa mai revin cu o problema depistata la baza de dat, cand imi dau Scripter in baza de date imi da urmatoarea eroare :

1 rânduri afectate.
Warning: #1366 Incorrect integer value: '' for column 'CarKey11' at row 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.