Jump to content

MySQL R33 - Ideal Pentru RPG


WopsS

Recommended Posts

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites


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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

posteaza la ajutor scripting, aici lasi o parere despre gamemode sau ii multumesti pentru el.

Cea ce ar trebui sa faca foarte multi 

  • Upvote 3

 

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

  • 3 weeks later...

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
Link to comment
Share on other sites

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

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.