Jump to content

Restrictie masini, si problema DMV


mihai1122

Recommended Posts

Salut!

 

Deci, am luat acest system de Dmv(

, si am incercat sa-l bag in gamemode, FS-ul merge perfect, dar e o alta problema... l-am bagat in gamemode, si nu primesc nici o eroare, (defapt primesc una singura, a trebuit sa bag asta in GM "#pragma tabsize 0", mi-a zis @Mister, si primesc crash la fiecare logare, la 10-15 secunde).)

L-am bagat in gamemode, si nu merge comanda /examen, nu apare cladirea, nu apare absolut nimic din ce era in fs.

Si problema a 2-a, am incercat sa fac o restrictie pentru masini, orice masina... de pe strada, sau oricare alta. sa nu poata intra in ea daca nu are licenta de condus.

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(P_Data[playerid][pCarLic] != 0)
    TogglePlayerControllable(playerid, 1);
    return 1;
}

 

Cum ar trebuii sa arate?

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

OFF Am zis sa postezi la ajutor scripting, nu la discutii scripting pentru ca aveai un model acolo si este o problema de scripting nu o disctie,

ON In fine la problema 2 am inteles eu gresit trebuie sa faci asa

Daca vrei sa te urci intr-o masina si nu ai licenta sa nu o poti conduce

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(P_Data[playerid][pCarLic] == 0)
	{
    	TogglePlayerControllable(playerid, 1);
	    SendClientMessage(playerid,-1,"Nu ai licenta de condus")	
		return 1;
	}
}

Iar la prima problema nu inteleg ce nu iti merge,

Scoate pragma tabsize 0 si posteaza ce erori ai

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

WiD.pwn(155) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

 

linia 155 CreateObject(11015, 1631.2998, -2175.8994, 14.5, 0, 0, 90);

 

cu pragma tabsize 0 nu am erori, dar primesc crash.

 

mai exact, la prima problema am incercat sa mut sistemul dmv in gamemode , descarca .pwn si iti vei da seama de ce zic.

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

acea eroare o primesti cand liniile nu sunt aliniate adica asa

 

 /// bla bla bla2

 // bla bla bla2

          //bla bla bla 3

 // bla bla 4

 

la 3 trebuie sa fie aliniat cu celelalte daca intelegi

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

nu inteleg de ce primesc crash... -.-

pe alte servere nu primesc, doar pe serverul meu.... cum pot afla de ce primesc crash? am sters tot ce tine de sistemul de dmv.

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[18:11:24] filterscripts = ""  (string)
[18:11:24] 
[18:11:24] Server Plugins
[18:11:24] --------------
[18:11:24]  Loading plugin: mysql
[18:11:24]  >> plugin.mysql: R39-4 successfully loaded.
[18:11:24]   Loaded.
[18:11:24]  Loading plugin: sscanf
[18:11:24] 

[18:11:24]  ===============================

[18:11:24]       sscanf plugin loaded.     

[18:11:24]          Version:  2.8.1        

[18:11:24]    (c) 2012 Alex "Y_Less" Cole  

[18:11:24]  ===============================

[18:11:24]   Loaded.
[18:11:24]  Loading plugin: streamer
[18:11:24] 

*** Streamer Plugin v2.7.9 by Incognito loaded ***

[18:11:24]   Loaded.
[18:11:24]  Loaded 3 plugins.

[18:11:24] 
[18:11:24] Filterscripts
[18:11:24] ---------------
[18:11:24]   Loaded 0 filterscripts.

[18:11:24] Conexiunea la baza de date 'bazadate' cu user-ul 'root' a reusit!!!
[18:11:24] !!!GM LOADED!!!
[18:11:24] Number of vehicle models: 0
[18:12:16] [connection] 127.0.0.1:56026 requests connection cookie.
[18:12:17] Incoming connection: 127.0.0.1:56026 id: 0
[18:12:18] [join] qMihai has joined the server (0:127.0.0.1)
[18:12:40] [part] qMihai has left the server (0:0)
[18:14:08] [connection] 127.0.0.1:49701 requests connection cookie.
[18:14:09] Incoming connection: 127.0.0.1:49701 id: 0
[18:14:09] [join] qMihai has joined the server (0:127.0.0.1)
[18:14:39] [part] qMihai has left the server (0:0)
[18:30:06] [connection] 127.0.0.1:55404 requests connection cookie.
[18:30:07] Incoming connection: 127.0.0.1:55404 id: 0
[18:30:08] [join] qMihai has joined the server (0:127.0.0.1)
[18:30:55] [part] qMihai has left the server (0:0)
[19:00:12] --- Server Shutting Down.

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
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
Reply to this topic...

×   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.

×
×
  • 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.