Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Pagalbos su kodu [PAWN]


Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 3540 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

Sveiki, gryžau prie pawno ir nežinau kaip sutvarkyt klaidą:

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

420 Line:

print(IsgaunamSalta(playerid));

Stock:

stock IsgaunamSalta(playerid)
{
	new Queryy[150];
	format( Queryy, sizeof( Queryy), "SELECT * FROM `zaidejai` WHERE vardas = '%s'", GetPlayerNameEx(playerid));
	mysql_query(Queryy);
	mysql_store_result();
	new fetch[6];
	mysql_fetch_field_row( fetch,"salt" );
	mysql_get_field("salt",fetch);
	printf("%s",fetch);
	format(playerData[playerid][pSalt],6,"%s",fetch);
	printf("%s",playerData[playerid][pSalt]);
	return playerData[playerid][pSalt];
}
Nuoroda į komentarą
Dalintis per kitą puslapį

Kartais ne taip turėtų būt? 

stock IsgaunamSalta(playerid)
{
    new Queryy[150];
    print( "IsgaunamSalta" ); 
    format( Queryy, sizeof( Queryy), "SELECT * FROM `zaidejai` WHERE vardas = '%s'", GetPlayerNameEx(playerid));
    mysql_query(Queryy);
    mysql_store_result();
    new fetch[6];
    mysql_fetch_field_row( fetch,"salt" );
    mysql_get_field("salt",fetch);
    printf("%s",fetch);
    format(playerData[playerid][pSalt],6,"%s",fetch);
    printf("%s",playerData[playerid][pSalt]);
    return playerData[playerid][pSalt];
}
Nuoroda į komentarą
Dalintis per kitą puslapį

(redaguota)

nieko neišprintina

[19:44:48]  

[19:44:48] ---------------------------

[19:44:48] MySQL Debugging activated (01/30/15)

[19:44:48] ---------------------------

[19:44:48]  

[19:44:48] >> mysql_connect( )

[19:44:48] CMySQLHandler::CMySQLHandler() - constructor called.

[19:44:48] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "testgm" | Username: "root" ...

[19:44:48] CMySQLHandler::Connect() - Connection was successful.

[19:44:48] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.

[19:44:48] >> mysql_ping( Connection handle: 1 )

[19:44:48] CMySQLHandler::Ping() - Connection is still alive.

[19:45:12] >> mysql_query( Connection handle: 1 )

[19:45:12] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry') - Successfully executed.

[19:45:12] >> mysql_store_result( Connection handle: 1 )

[19:45:12] CMySQLHandler::StoreResult() - Result was stored.

[19:45:12] >> mysql_num_rows( Connection handle: 1 )

[19:45:12] CMySQLHandler::NumRows() - Returned 1 row(s)

[19:45:12] >> mysql_free_result( Connection handle: 1 )

[19:45:12] CMySQLHandler::FreeResult() - Result was successfully free'd.

[19:45:14] >> mysql_real_escape_string( Connection handle: 1 )

[19:45:14] CMySQLHandler::EscapeString(1231); - Escaped 4 characters to 1231.

[19:45:14] >> mysql_query( Connection handle: 1 )

[19:45:14] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry') - Successfully executed.

[19:45:14] >> mysql_store_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::StoreResult() - Result was stored.

[19:45:14] >> mysql_fetch_field_row( Connection handle: 1 )

[19:45:14] CMySQLHandler::FetchField(salt) - You cannot call this function now. (Reason: Fields/Rows are empty.)

[19:45:14] >> mysql_fetch_field_row( Connection handle: 1 )

[19:45:14] CMySQLHandler::FetchField(salt) - You cannot call this function now. (Reason: Fields/Rows are empty.)

[19:45:14] >> mysql_query( Connection handle: 1 )

[19:45:14] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry' AND slaptazodis = '') - Successfully executed.

[19:45:14] >> mysql_store_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::StoreResult() - Result was stored.

[19:45:14] >> mysql_num_rows( Connection handle: 1 )

[19:45:14] CMySQLHandler::NumRows() - Returned 0 row(s)

[19:45:14] >> mysql_free_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::FreeResult() - Result was successfully free'd.

Redaguota , nario Evaldas L.
Nuoroda į komentarą
Dalintis per kitą puslapį


stock IsgaunamSalta(playerid)

{

new Query[128];

format(Query, sizeof(Query), "SELECT * FROM `zaidejai` WHERE `vardas` = '%s'", GetPlayerNameEx(playerid));

mysql_query(Query);

mysql_store_result();

new fetch[6];

if(mysql_retrieve_row())

{

mysql_get_field("salt", fetch);

}

mysql_free_result();

printf("%s\n", fetch);

return 1;

}

Redaguota , nario Rocky'
Nuoroda į komentarą
Dalintis per kitą puslapį

 

nieko neišprintina

[19:44:48]  

[19:44:48] ---------------------------

[19:44:48] MySQL Debugging activated (01/30/15)

[19:44:48] ---------------------------

[19:44:48]  

[19:44:48] >> mysql_connect( )

[19:44:48] CMySQLHandler::CMySQLHandler() - constructor called.

[19:44:48] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "testgm" | Username: "root" ...

[19:44:48] CMySQLHandler::Connect() - Connection was successful.

[19:44:48] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.

[19:44:48] >> mysql_ping( Connection handle: 1 )

[19:44:48] CMySQLHandler::Ping() - Connection is still alive.

[19:45:12] >> mysql_query( Connection handle: 1 )

[19:45:12] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry') - Successfully executed.

[19:45:12] >> mysql_store_result( Connection handle: 1 )

[19:45:12] CMySQLHandler::StoreResult() - Result was stored.

[19:45:12] >> mysql_num_rows( Connection handle: 1 )

[19:45:12] CMySQLHandler::NumRows() - Returned 1 row(s)

[19:45:12] >> mysql_free_result( Connection handle: 1 )

[19:45:12] CMySQLHandler::FreeResult() - Result was successfully free'd.

[19:45:14] >> mysql_real_escape_string( Connection handle: 1 )

[19:45:14] CMySQLHandler::EscapeString(1231); - Escaped 4 characters to 1231.

[19:45:14] >> mysql_query( Connection handle: 1 )

[19:45:14] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry') - Successfully executed.

[19:45:14] >> mysql_store_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::StoreResult() - Result was stored.

[19:45:14] >> mysql_fetch_field_row( Connection handle: 1 )

[19:45:14] CMySQLHandler::FetchField(salt) - You cannot call this function now. (Reason: Fields/Rows are empty.)

[19:45:14] >> mysql_fetch_field_row( Connection handle: 1 )

[19:45:14] CMySQLHandler::FetchField(salt) - You cannot call this function now. (Reason: Fields/Rows are empty.)

[19:45:14] >> mysql_query( Connection handle: 1 )

[19:45:14] CMySQLHandler::Query(SELECT * FROM `zaidejai` WHERE vardas = 'Ticky_Swerry' AND slaptazodis = '') - Successfully executed.

[19:45:14] >> mysql_store_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::StoreResult() - Result was stored.

[19:45:14] >> mysql_num_rows( Connection handle: 1 )

[19:45:14] CMySQLHandler::NumRows() - Returned 0 row(s)

[19:45:14] >> mysql_free_result( Connection handle: 1 )

[19:45:14] CMySQLHandler::FreeResult() - Result was successfully free'd.

Tai tu ne mysql log tikrink, o server log... Jausk skirtumą.

Nuoroda į komentarą
Dalintis per kitą puslapį

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 3540 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...