SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Español/Spanish

 
 
Thread Tools Display Modes
Old 01/05/2015, 04:51 AM   #1
RafaelZam
Huge Clucker
 
RafaelZam's Avatar
 
Join Date: Jun 2012
Location: Trust yourself.
Posts: 308
Reputation: 16
Default promebla con mysql

hola, disculpen por el tema anterior, solo era una llave que puse mal, ._. no era como para que otacon me dijera que no queria compartir no se que le pasa ._.
pero bueno

espero que alguien me pueda ayudar, tengo un problema con query en mi mysql

pawn Code:
Query("SELECT ,`user` FROM `banned` WHERE `IP`='%s' OR `user`='%s' ORDER BY `id`", gPlayerInfo[playerid][pIp],gPlayerInfo[playerid][pName]);

    mysql_query(query);

(157) : error 035: argument type mismatch (argument 1)

estoy utilizando el R5 https://github.com/pBlueG/SA-MP-MySQL/releases
de blueG
y me estaba funcionnado bien, pero cuando me salio ese error me confundi, no se que tiene esa lina, la linea es la que puse el problema está en la parte de mysql_query(query);
pawn Code:
mysql_query(query);
pongo la linea completa por si tengo algo mal ahi :S
me podrian ayudar?
__________________
Just Tryin' to get it right
RafaelZam is offline  
Old 01/05/2015, 05:19 AM   #2
SickAttack
Godfather
 
Join Date: Dec 2013
Posts: 5,106
Reputation: 754
Default Re: promebla con mysql

pawn Code:
format(query, sizeof(query), "SELECT `user` FROM `banned` WHERE `IP`='%s' OR `user`='%s' ORDER BY `id`", gPlayerInfo[playerid][pIp],gPlayerInfo[playerid][pName]);
mysql_query(query);
SickAttack is offline  
Old 01/05/2015, 05:34 AM   #3
RafaelZam
Huge Clucker
 
RafaelZam's Avatar
 
Join Date: Jun 2012
Location: Trust yourself.
Posts: 308
Reputation: 16
Default AW: promebla con mysql

gracias por eso de format, lo usaré desde ahora estoy algo viejo ya jajaja recordando
pero
mysql_query(query); me sigue saliendo error 035: argument type mismatch (argument 1)

:C
__________________
Just Tryin' to get it right
RafaelZam is offline  
Old 01/05/2015, 06:39 AM   #4
SickAttack
Godfather
 
Join Date: Dec 2013
Posts: 5,106
Reputation: 754
Default Re: AW: promebla con mysql

Quote:
Originally Posted by RafaelZam View Post
gracias por eso de format, lo usaré desde ahora estoy algo viejo ya jajaja recordando
pero
mysql_query(query); me sigue saliendo error 035: argument type mismatch (argument 1)

:C
La funcion mysql_query tiene 2 argumentos: mysql_query(mysql, query);.

Ejemplo:
pawn Code:
mysql = mysql_connect("host", "user", "database", "pass");
mysql_query(mysql, query);
SickAttack is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Plugin r39-2 Error: Can't connect to local MySQL server through socket Emre__ Scripting Help 10 30/07/2014 09:26 AM
[Tutorial] [VIDEO] MySQL ORM r38: How to pair GM with MySQL & creation of registration/connection system cArnasLT Tutorials 3 19/05/2014 03:08 PM
BlueG MySQL plugin - Failed (plugins/mysql.so: undefined symbol: _Z13stringvprintfPKcPc) linuxthefish Plugin Development 10 13/07/2013 11:56 AM
[Tool/Web/Other] MySQL DB Manager - Easily manage your MySQL databases with this remote application fiki574 Tools and Files 13 22/07/2012 10:41 AM


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.