stock Baratok(playerid){//new i[256];new player[200]; format(query, sizeof(query), \"SELECT `kit` FROM `ismeri` WHERE `ki`=\'%s\'\", pName(playerid));mysql_query(query);mysql_store_result();mysql_fetch_row(player);ShowPlayerNameTagForPlayer(playerid, player, 1); ShowPlayerNameTagForPlayer(player, playerid, 1);return 1;}
D:\\Szerver\\gamemodes\\max.pwn(3718) : error 035: argument type mismatch (argument 2)D:\\Szerver\\gamemodes\\max.pwn(3719) : error 035: argument type mismatch (argument 1)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
ShowPlayerNameTagForPlayer(playerid, player, 1); ShowPlayerNameTagForPlayer(player, playerid, 1);
new player[200];
3718 ShowPlayerNameTagForPlayer(playerid, player, 1);3719 ShowPlayerNameTagForPlayer(player, playerid, 1);
#include <foreach>OnPlayerUpdate(playerid){ foreach(Player, i){ if(playerid != i && Baratok(playerid, i)) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(playerid, i, 1); ShowPlayerNameTagForPlayer(i, playerid, 1); } }}} stock Baratok(playerid, player){new lekertadat[200];format(query, sizeof(query), \"SELECT `kit` FROM `ismeri` WHERE `ki`=\'%s\'\", pName(playerid));mysql_query(query);mysql_store_result();mysql_fetch_row(lekertadat); player = GetPlayerID(lekertadat);return player;}
stock Baratok(playerid){ //new i[256]; new player[200]; format(query, sizeof(query), \"SELECT `kit` FROM `ismeri` WHERE `ki`=\'%s\'\", pName(playerid)); mysql_query(query); mysql_store_result(); mysql_fetch_row(player); ShowPlayerNameTagForPlayer(playerid, GetPlayerIdFromName(player), 1); ShowPlayerNameTagForPlayer(GetPlayerIdFromName(player), playerid, 1); return 1;}stock GetPlayerIdFromName(playername[]){ for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); if(strcmp(playername2, playername, true, strlen(playername)) == 0) { return i; } } } return INVALID_PLAYER_ID;}