Jump to content
  • 0

Permis auto sv trucking


Dan_13

Question

salut,recent am vazut pe un server de trucking examen auto ma rog pot baga fs dar imi treb cind te urci in masina sa te dea jos si sa scrie la chat nu ai permis si cind intri dupa ce iti alegi jobu sati arate un dialog cu msg_box

Nu ai permis:

http://postimg.org/image/g2byk1lkv/

Dialog Msg Box:

http://postimg.org/image/8a7uyi0tz/

ONplayerEnterVehicle

[pawn]// This callback gets called whenever a player enters a vehicle

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

// Setup local variables

new engine, lights, alarm, doors, bonnet, boot, objective;

// Check if the vehicle has fuel

if (AVehicleData[vehicleid][Fuel] > 0)

{

// Start the engine and turn on the lights

GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);

}

// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you

GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);

APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);

return 1;

}[/pawn]

cu dialogu cu msgbox cred ca ma descurc

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

Buna Ziua,

incercati asta:


	if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)
	{
   new dmvdialog[464] = "Nu detii permis \n");
strcat(dmvdialog, "Asadar nu poti conduce.\n");
strcat(dmvdialog, "Dute la checkpoint-ul rosu pentru a-l da.\n");

ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", szDialog, "OK", "");

	}
Variabila
VariabilaDumneavoastra

o inlocuiti cu variabila dmv-ului.

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

[pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1974) : error 029: invalid expression, assumed zero

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : error 001: expected token: ";", but found ")"

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : error 029: invalid expression, assumed zero

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1976) : warning 215: expression has no effect

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 029: invalid expression, assumed zero

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : warning 215: expression has no effect

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : warning 215: expression has no effect

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 001: expected token: ";", but found ")"

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : error 029: invalid expression, assumed zero

C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1979) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

[/pawn]

Aaa,si inca cv nu am bagat in gm scriptu pt dmv il pun fs mie imi trebuie cind intri in masina sa te dea jos si sati apara dialogul ca nai permis

poate trebuie si de la onplayerexitvehicle cv:

[pawn]public OnPlayerExitVehicle(playerid, vehicleid)

{

// Setup local variables

new engine, lights, alarm, doors, bonnet, boot, objective;

// Check if the player is the driver of the vehicle

if (GetPlayerVehicleSeat(playerid) == 0)

{

// Turn off the lights and engine

GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective);

}[/pawn]

Link to comment
Share on other sites

Specifica si liniile

asteas liniile:

[pawn]if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)

    {

  new dmvdialog[464] = "Nu detii permis \n");

strcat(dmvdialog, "Asadar nu poti conduce.\n");

strcat(dmvdialog, "Dute la checkpoint-ul rosu pentru a-l da.\n");

ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", szDialog, "OK", "");

    }

[/pawn]

Link to comment
Share on other sites

if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)
{
    new dmvdialog[464];
    format(dmvdialog, sizeof(dmvdialog), "Nu detii permis \nAsadar nu poti conduce.\nDute la checkpoint-ul rosu pentru a-l da.");
    ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", dmvdialog, "OK", "");
    return 1;
}

Variabila

Code: [select]

VariabilaDumneavoastra

o inlocuiti cu variabila dmv-ului.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)
{
    new dmvdialog[464];
    format(dmvdialog, sizeof(dmvdialog), "Nu detii permis \nAsadar nu poti conduce.\nDute la checkpoint-ul rosu pentru a-l da.");
    ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", dmvdialog, "OK", "");
    return 1;
}

pai si in loc de variablia dvs ce pun cam zis ca nam sistem de dmv in gm o sa pun fs dar imi trb sa numi dea voie sa intru in masina

Link to comment
Share on other sites

pai acuma sa compilat dar imi da 1 erorr Gireadea nush de la ce

[pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\serverurs\gamemodes\PPC_Trucking.pwn(1974) : error 029: invalid expression, assumed zero

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

asta e linia:

[pawn]if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)[/pawn]

stii nu m-am gindit la cv ca daca fac asta o sa dau examen dar fs de examen nu are restrictia de a intra in masina si de aia treb sa fac sau sa pun sistemd e dmv in gm ca el automat dupa ce dau examen sa iti poata da voie in masina dar asa tot nu voi putea intra ...mda...nu m-am gindit la asa cv :( ma poti ajuta si cu sistem de dmv in gm???

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.