public OnPlayerConnect(playerid){new str[256], Name[MAX_PLAYER_NAME];GetPlayerName(playerid, Name, sizeof(Name));format(str, 256, \"Üdvözöllek a szerveren %s!\", Name);SendClientMessage(playerid, str);return 1;}
if(ServerInfo[ConnectMessages] == 1){if (strlen(pAKA) < 3) format(str,sizeof(str),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid);else if (!strcmp(pAKA,PlayerName,true)) format(str,sizeof(str),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid);for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && playerid != i){ if(PlayerInfo[Level] > 2) SendClientMessage(i,grey,str); else { format(string,sizeof(string),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid); SendClientMessage(i,grey,string); }}}
if(ServerInfo[ConnectMessages] == 1){if (strlen(pAKA) < 3) format(str,sizeof(str),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid);else if (!strcmp(pAKA,PlayerName,true)) format(str,sizeof(str),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid);for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && playerid != i){ if(PlayerInfo[Level] > 2) SendClientMessage(i,grey,str); else { format(string,sizeof(string),\"{BB56BD}*** {84DFEB}%s (%d) {BB56BD}belépett a szerverre\", PlayerName, playerid); SendClientMessage(i,grey,string); }}} [/quote]Azt nem mondta, hogy ladmin-t, vagy LuxAdmint használ.Ha csak módba/scriptbe kell jó lesz ez is: public OnPlayerConnect(playerid){new str[256], Name[MAX_PLAYER_NAME];GetPlayerName(playerid, Name, sizeof(Name));format(str, 256, \"Üdvözöllek a szerveren %s!\", Name);SendClientMessage(playerid, str);return 1;}
D:\\Rockstar Games\\Buszozas_LSban\\gamemodes\\buszmod.pwn(82) : error 035: argument type mismatch (argument 2)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
A hibás sort másold be, kérlek!