Jump to content

Recommended Posts

  • Administrator
Posted
17 minutes ago, eLLemenT_ said:

@WopsSma refer problema asta

 


[13:02:55] [MYSQL]: Connection to database (w3op) failed!
[13:02:55]  
[13:02:55]  
[13:02:55]  RPG: v0.2 Beta LS-LV-SF
[13:02:55] _____________________
[13:02:55] Number of vehicle models: 1
[13:02:55] --- Server Shutting Down.
[13:02:55] plugin.mysql: Unloading plugin...
[13:02:55] plugin.mysql: Plugin unloaded.

Ti-am spus si de ea.

 

36 minutes ago, WopsS said:

Pentru a modifica numele bazei de date in gamemode urmeaza instructiuniile astea.

On 22.08.2014 at 13:40, WopsS said:

- Dacă vreţi să editaţi datele pentru baza de date, va duceţi în pawno\include şi dechideti cu Notepad / Visual Studio / Wordpad etc. şi dechideti connection.inc. Modificaţi următoarele linii:



#define mysql_host "ip-ul host-ului"
#define mysql_user "numele de utilizator pentru baza de date (MySQL)"
#define mysql_password "parolă pentru baza de date (MySQL)"
#define mysql_database "numele bazei de date"

 

Si compilezi gamemode-ul.

Posted

Da , multumesc ! A mers ! Dar am o alta problema . Cand vreau sa il pun pe host bag acolo la connection.inc tot de la mysql si dupa cand il pornesc imi spune asta din nou

 

[13:02:55] [MYSQL]: Connection to database (w3op) failed!
[13:02:55]  
[13:02:55]  
[13:02:55]  RPG: v0.2 Beta LS-LV-SF
[13:02:55] _____________________
[13:02:55] Number of vehicle models: 1
[13:02:55] --- Server Shutting Down.
[13:02:55] plugin.mysql: Unloading plugin...
[13:02:55] plugin.mysql: Plugin unloaded.
  • Administrator
Posted
1 hour ago, eLLemenT_ said:

Da , multumesc ! A mers ! Dar am o alta problema . Cand vreau sa il pun pe host bag acolo la connection.inc tot de la mysql si dupa cand il pornesc imi spune asta din nou

 


[13:02:55] [MYSQL]: Connection to database (w3op) failed!
[13:02:55]  
[13:02:55]  
[13:02:55]  RPG: v0.2 Beta LS-LV-SF
[13:02:55] _____________________
[13:02:55] Number of vehicle models: 1
[13:02:55] --- Server Shutting Down.
[13:02:55] plugin.mysql: Unloading plugin...
[13:02:55] plugin.mysql: Plugin unloaded.

Trebuie sa pui gamemode-ul compilat pe host.

Posted

Am şi eu o întrebare: Cum 'transform' comenzile în zcmd?

Am încercat să transform o comandă:

if(strcmp(cmd, "/help", true) == 0)

în

CMD:help(playerid,params[])

Dar îmi dă eroare:
 

D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 029: invalid expression, assumed zero
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 017: undefined symbol "cmd_help"
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 029: invalid expression, assumed zero
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Repet întrebarea: Cum 'transform' comenzile în zcmd?

Mulţumesc anticipat!

  • Administrator
Posted
8 hours ago, HaZZe. said:

Am şi eu o întrebare: Cum 'transform' comenzile în zcmd?

Am încercat să transform o comandă:


if(strcmp(cmd, "/help", true) == 0)

în


CMD:help(playerid,params[])

Dar îmi dă eroare:
 


D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 029: invalid expression, assumed zero
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 017: undefined symbol "cmd_help"
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : error 029: invalid expression, assumed zero
D:\SAMP\Samp server build\gamemodes\w3op.pwn(562) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Repet întrebarea: Cum 'transform' comenzile în zcmd?

Mulţumesc anticipat!

Salut, daca vrei sa faci asta, nu trebuie sa pui

CMD:help(playerid,params[])

in interiorul functiei OnPlayerCommandText pentru ca insusi comenziile o sa devina functii.

Posted
Acum 7 ore, WopsS a spus:

Salut, daca vrei sa faci asta, nu trebuie sa pui


CMD:help(playerid,params[])

in interiorul functiei OnPlayerCommandText pentru ca insusi comenziile o sa devina functii.

Păi şi unde să le pun ca să fie mai ordonat? Doar nu le pun random.

Posted
Acum 57 minute, HaZZe. a spus:

Păi şi unde să le pun ca să fie mai ordonat? Doar nu le pun random.

Punele inafara fiecarui public,pe scurt,cam la sfarsitul gamemodeului le pui.

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

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

[20:50:27]
[20:50:27] Server Plugins
[20:50:27] --------------
[20:50:27]  Loading plugin: mysql
[20:50:27]  >> plugin.mysql: R38 successfully loaded.
[20:50:27]   Loaded.
[20:50:27]  Loaded 1 plugins.

[20:50:27]
[20:50:27] Filterscripts
[20:50:27] ---------------
[20:50:27]   Loaded 0 filterscripts.

[20:50:27] Script[gamemodes/w3op.amx]: Run time error 19: "File or function is not found"
[20:50:27] Number of vehicle models: 0

Help?

  • Administrator
Posted
8 hours ago, HaZZe. said:

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

[20:50:27]
[20:50:27] Server Plugins
[20:50:27] --------------
[20:50:27]  Loading plugin: mysql
[20:50:27]  >> plugin.mysql: R38 successfully loaded.
[20:50:27]   Loaded.
[20:50:27]  Loaded 1 plugins.

[20:50:27]
[20:50:27] Filterscripts
[20:50:27] ---------------
[20:50:27]   Loaded 0 filterscripts.

[20:50:27] Script[gamemodes/w3op.amx]: Run time error 19: "File or function is not found"
[20:50:27] Number of vehicle models: 0

Help?

Folosesti nativechecker si vezi ce nu iti gaseste.

Posted
La 03.01.2016la5:02, WopsS a spus:

Folosesti nativechecker si vezi ce nu iti gaseste.

C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(173) : warning 201: redefinition of constant/macro (symbol "pInfo")
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(179) : error 021: symbol already defined: "PlayerInfo"
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(3767) : error 028: invalid subscript (not an array or too many subscripts): "fspInfo"
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(3767) : warning 215: expression has no effect
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(3767) : error 001: expected token: ";", but found "]"
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(3767) : error 029: invalid expression, assumed zero
C:\Users\GeorgeXD\Desktop\bsgaming\gamemodes\ro-rpg.pwn(3767) : fatal error 107: too many error messages on one line
e de la gm-ul tau pornit si da erorile alea, ce fac?

  • Administrator
Posted

Ai deja pInfo si PlayerInfo.

Asta zic erorile.

  • Administrator
Posted
55 minutes ago, Master18 said:

pai unde in gm?

Aici

2 hours ago, Master18 said:

ro-rpg.pwn(173)

Nu stiu de ce le ai de doua ori, poate ai un include ceva.

Posted (edited)

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

[22:51:50] 
[22:51:50] Server Plugins
[22:51:50] --------------
[22:51:50]  Loading plugin: mysql
[22:51:50]  >> plugin.mysql: R39-4 successfully loaded.
[22:51:50]   Loaded.
[22:51:50]  Loaded 1 plugins.

[22:51:50] 
[22:51:50] Filterscripts
[22:51:50] ---------------
[22:51:50]   Loaded 0 filterscripts.

cand bag import imi da eroare: http://imgur.com/7pPr6At

Edited by Mr_DAN07
  • Administrator
Posted

Nu ai acces sa faci o noua baza de date. Pune-o in una deja existenta.

  • Administrator
Posted
29 minutes ago, Mr_DAN07 said:

m-am conectat la baza de date dar cand deschid consola mi se inchide

Probabil de asta se inchide.

  • Administrator
Posted
1 minute ago, Mr_DAN07 said:

adica? nu trebuie sa bag acolo in connection.inc datele?

Ba da, dar poate nu s-a conectat. Nu depinde numai de asta conectarea. Verifica server_log sau mysql_log.

Posted (edited)
18 hours ago, WopsS said:

Ba da, dar poate nu s-a conectat. Nu depinde numai de asta conectarea. Verifica server_log sau mysql_log.

server log 

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

[22:40:20] 
[22:40:20] Server Plugins
[22:40:20] --------------
[22:40:20]  Loading plugin: mysql
[22:40:20]  >> plugin.mysql: R39-4 successfully loaded.
[22:40:20]   Loaded.
[22:40:20]  Loaded 1 plugins.

[22:40:20] 
[22:40:20] Filterscripts
[22:40:20] ---------------
[22:40:20]   Loaded 0 filterscripts.
 

am incercat gm-ul lui equinox imi merge tot frumos dar al tau nu ...

Edited by Mr_DAN07
  • 3 weeks later...
Posted (edited)

Scuzati-ma ca dau revive la acest post, dar nu inteleg de ce nu imi merge.

Imi tot zice ca nu se conecteaza la baza de date, am facut tot posibilul(ce am putut si eu) si va rog nu ma judecati ca nu prea am eu cunostinte cu scripting 

"

acestea sunt cele cu conexiunile:

#define mysql_host "127.0.0.1"
#define mysql_user "root"
#define mysql_password "1234"
#define mysql_database "w3op"

CREATE DATABASE IF NOT EXISTS `w3op` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `w3op`;

[16:49:37] [ERROR] CMySQLConnection::Connect - (error #1045) Access denied for user 'root'@'localhost' (using password: NO)"

Edited by LoLFTW23
Posted
Acum 4 minute, LoLFTW23 a spus:

Scuzati-ma ca dau revive la acest post, dar nu inteleg de ce nu imi merge.

Imi tot zice ca nu se conecteaza la baza de date, am facut tot posibilul(ce am putut si eu) si va rog nu ma judecati ca nu prea am eu cunostinte cu scripting 

"

acestea sunt cele cu conexiunile:

#define mysql_host "127.0.0.1"
#define mysql_user "root"
#define mysql_password "1234"
#define mysql_database "w3op"

CREATE DATABASE IF NOT EXISTS `w3op` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `w3op`;

[16:49:37] [ERROR] CMySQLConnection::Connect - (error #1045) Access denied for user 'root'@'localhost' (using password: NO)"

Nu pui nimic la mysql_password daca e tinut in PC si la mysql_host pune "localhost"

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

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.