22.08.2009, 16:40
I am making a mysql register i already make the /register command! and works perfect, but i have a problem i need when the player connect in the server if user is registered server said "user registered use /login pass" and if the player is not registered said "user not registered use /register pass"
But when i compile give me this 2 warnings
Here is the code but i dont know the problem
But when i compile give me this 2 warnings
Quote:
C:\Documents and Settings\Administrador\Mis documentos\Samp Server\gamemodes\nfs.pwn(385) : warning 202: number of arguments does not match definition C:\Documents and Settings\Administrador\Mis documentos\Samp Server\gamemodes\nfs.pwn(384) : warning 204: symbol is assigned a value that is never used: "chekear" |
Quote:
public ChekearUsuario(playerid) { new chekear; new existente; new string[256]; new pname[24]; GetPlayerName(playerid,pname,24); format(string,256,"SELECT Nombre FROM players WHERE Nombre='%s'",pname); chekear = samp_mysql_query(string); existente = samp_mysql_num_rows(chekear); if (existente>0) { SendClientMessage(playerid, COLOR_GREEN ,"*** Bienvenido Tu Nombre ya esta Registrado utiliza /login [contraseсa}"); } else { SendClientMessage(playerid, COLOR_YELLOW ,"*** Bienvenido Tu Nombres no esta registrado utiliza /registro [contraseсa]"); } } |