Peršokti į turinį

Pagalbos su kodu [PAWN]


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─»

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─ů.

├Ś
├Ś
  • Sukurti nauj─ů...