Jump to content
  • 0

ma ajuta cineva sa rezolv /svf


Question

Posted

SELECT * FROM `server_fvs` ORDER BY `server_fvs`.`fvsID` ASC

ce probleme am:

1. Nu se vede Pickup ul si nici asta cu /svf. dovada:

          Iter_Add(fvsVehicleSpawn, x);
        format(string, sizeof(string), "{ffff4d}ID: {FFFFFF}%d\n{ffff4d}Spawn Vehicle: {FFFFFF}[/svf]", x, DynamicFactions[fvsVariables[x][fvsFaction]]);
        fvsVariables[x][fvsLabel] = CreateDynamic3DTextLabel(string, -1, fvsVariables[x][fvsPos][0], fvsVariables[x][fvsPos][1], fvsVariables[x][fvsPos][2], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0);
        fvsVariables[x][fvsPickup] = CreateDynamicPickup(19133, 23, fvsVariables[x][fvsPos][0], fvsVariables[x][fvsPos][1], fvsVariables[x][fvsPos][2], 0, -1, -1, 100.0);
    }

2. nu stiu cum sa bag chestia asta in database : SELECT * FROM `server_fvs` ORDER BY `server_fvs`.`fvsID` ASC

3. Va rog rapid :(((

1 answer to this question

Recommended Posts

  • 0
Posted

Nu se vede deoarece e posibil sa nu ai nici un fel de data incarcata in fvsVariables

Chestia aia se numeste query si nu il bagi in database ci o folosesti in script, presupun ca trebuie folosit in OnGameModeInit

public OnGameModeInit()
{
	// Cod aici
	mysql_tquery(handle, "SELECT * FROM `server_fvs` ORDER BY `server_fvs`.`fvsID` ASC", "LoadServerFvs", "");
	// Alt cod aici
}

LoadServerFvs()
{
	// Aici codul pentru incarcarea datelor in variabilele tale
}

Daca ai copiat din alt script, ti-as sugera sa cauti acest cod de incarcare in acel script

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.