Jump to content
  • 0

Error [sL0w^]


sL0w^

Question

Am luat ieri un gm de pe acest site (doar pwn) si la compilare imi da asa:

C:\DOCUME~1\Larry\MYDOCU~1\DOWNLO~1\SERVER~1\SERVER~1\GAMEMO~1\SAMP.pwn(566) : error 017: undefined symbol "mysql_retrieve_row"
C:\DOCUME~1\Larry\MYDOCU~1\DOWNLO~1\SERVER~1\SERVER~1\GAMEMO~1\SAMP.pwn(657) : error 017: undefined symbol "mysql_retrieve_row"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Linii

566:

[pawn]if ( mysql_retrieve_row ( ) )

{

        mysql_fetch_field_row ( registerdate , "register_date" ) ;

        mysql_fetch_field_row ( password , "password" ) ;

        mysql_fetch_field_row ( email , "mail" ) ;

        mysql_fetch_field_row ( Refered , "Refered" ) ;

        mysql_fetch_field_row ( regiune , "regiune" ) ;

        mysql_fetch_field_row ( DataDeNastere , "DataDeNastere" ) ;

        mysql_fetch_field_row ( NumeReal , "NumeReal" ) ;

        mysql_fetch_field_row ( Profesie , "Profesie" ) ;

        mysql_fetch_field_row ( sex , "sex" ) ;

        mysql_fetch_field_row ( Query , "PermisAuto" ) ; PlayerData [ playerid ] [ PermisAuto ] = strval ( Query ) ;

        mysql_fetch_field_row ( Query , "Job" ) ; PlayerData [ playerid ] [ Job ] = strval ( Query ) ;

        mysql_fetch_field_row ( Query , "Admin" ) ; PlayerData [ playerid ] [ Admin ] = strval ( Query ) ;

       

        SendClientMessage( playerid , ~0 , "INFO: Te-ai logat cu succes ");

        new

str[700];

format ( str , 700 , "Bine ai revenit %s!\n\nSunteti membru din data de: %s.\nParola dumneavoastra: %s\n" , Name , registerdate , password ) ;

        format ( str , 700 , "%sEmailul dumneavoastra: %s\nAi aflat de serverul nostru de la: %s \n" , str , email , Refered ) ;

        format ( str , 700 , "%sTu esti din: %s\nEsti nascut pe data de: %s \n" , str , regiune , DataDeNastere ) ;

        format ( str , 700 , "%sNumele tau real este: %s\n Esti de profesie: %s\nEsti de sex: %s" , str , NumeReal , Profesie , sex );

ShowPlayerDialog ( playerid , DIALOG_INFORMATII , DIALOG_STYLE_BOX , "Informatii" , str , "Ok" , "" ) ;

}

else

{

SetPlayerPos ( playerid , -2450.38, -74.72, 33.48 ) ;

SetPlayerCameraPos ( playerid , -2459.38, -74.72, 36.48 ) ;

SetPlayerCameraLookAt ( playerid , -2459.63, -79.67, 37.14 ) ;

  ShowPlayerDialog ( playerid , DIALOG_LOGIN , DIALOG_STYLE_INPUT , "Login" , "{999999}Va rugam sa scrieti parola cu care v-ati intregistrat mai jos.\n{FF3300}Daca ati uitat parola puteti sa o recuperati de pe www.sa-mp.ro/rpg" , "Login" , "Kick" ) ;

  mysql_free_result ( ) ;

  new

      string [ 128 ] ;

  PlayerPasswordWRONG [ playerid ] += 1 ;

  format ( string , sizeof ( string ) ,  ""EROARE"ERROR: "ALB"Parola incorecta mai ai %d/4 incercari ! " , PlayerPasswordWRONG ) ;

  SendClientMessage ( playerid , ~0 ,  string ) ;

  if ( PlayerPasswordWRONG [ playerid ] == 4 )

  {

  Kick ( playerid ) ;

}

  return 1 ;

}

mysql_free_result ( ) ;

return 1 ;

}[/pawn]

657:

[pawn]if ( mysql_retrieve_row ( ) )

{

mysql_fetch_field_row ( Query , "AccountRegister" ) ;

}

mysql_free_result (  ) ;

if ( AccountRegister [ playerid ] == 1 )

{

    SetPlayerPos ( playerid , -2450.38, -74.72, 33.48 ) ;

SetPlayerCameraPos ( playerid , -2459.38, -74.72, 36.48 ) ;

SetPlayerCameraLookAt ( playerid , -2459.63, -79.67, 37.14 ) ;

        ShowPlayerDialog ( playerid , DIALOG_LOGIN , DIALOG_STYLE_INPUT , "Login" , "{999999}Va rugam sa scrieti parola cu care v-ati intregistrat mai jos.\n{FF3300}Daca ati uitat parola puteti sa o recuperati de pe www.sa-mp.ro/rpg" , "Login" , "Kick" ) ;

}

  else if ( AccountRegister [ playerid ] == 0 )

  {

        SetPlayerPos ( playerid , -2450.38, -74.72, 33.48 ) ;

SetPlayerCameraPos ( playerid , -2459.38, -74.72, 36.48 ) ;

SetPlayerCameraLookAt ( playerid , -2459.63, -79.67, 37.14 ) ;

        ShowPlayerDialog ( playerid , DIALOG_REGISTER , DIALOG_STYLE_INPUT , "Register" , "{999999}Va rugam sa scrieti mai jos o parola cu care veti putea securiza contul.\nTotodata puteti sa va inregistrati de pe site-ul nostru, {FF3300}www.sa-mp.ro/rpg" , "Register" , "Kick" ) ;

}

return 1 ;

}

[/pawn]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Este prin MYSQL, nu prea ma pricep in MYSQL,dar citeste si tu aici:

http://wiki.sa-mp.com/wiki/MySQL#mysql_retrieve_row

Ti-era lene sa dai un search pe google,iti lua mai putin de 1 minut............

Cred ca trebuie sa ai baza de date,sa faci configurarile in gamemode.

Lil_Shean

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.