public OnPlayerTextnew szChat[144]; if(IsPlayerAdminLevel (playerid, 1)) format(szChat,sizeof (szChat),\"{FF002B}[Moderátor]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text); else { if(IsPlayerAdminLevel (playerid, 2)) format(szChat,sizeof (szChat),\"{FF002B}[Admin]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else {if(IsPlayerAdminLevel (playerid, 3)) format(szChat,sizeof (szChat),\"{FF002B}[Admin]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else {if(IsPlayerAdminLevel (playerid, 4)) format(szChat,sizeof (szChat),\"{FF002B}[szerverFelügyelõ]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else {if(IsPlayerAdminLevel (playerid, 5)) format(szChat,sizeof (szChat),\"{FF002B}[Tulajdonos]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else format(szChat,sizeof (szChat),\"{FAF623}[Jatekos]{%06x}{03F2FF}%s{007f9c}(%d): {ffffff}%s\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);//Ez pedig az a rész hogy ha se nem Admin se nem V.I.P. akkor is küldjön üzenetet } SendClientMessageToAll(-1, szChat); return 0;} //Ha ilyened már van vedd ki. stock pName(playerid) { new name[24]; GetPlayerName(playerid,name,24); return name;}
E:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(57) : error 001: expected token: \";\", but found \"new\"E:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(58) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(59) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(60) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(61) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(62) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(63) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(64) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(65) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(66) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(67) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(70) : error 010: invalid function or declarationE:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(83) : error 054: unmatched closing brace (\"}\")E:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(90) : warning 203: symbol is never used: \"ret_memcpy\"E:\\cucc,server\\igazi szerver\\filterscripts\\adminn3.pwn(90) : warning 203: symbol is never used: \"szChat\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 13 Errors.
public OnPlayerText(playerid, text[])
public OnPlayerText(playerid, text[]) {new szChat[144]; if(IsPlayerAdminLevel (playerid, 1)) format(szChat,sizeof (szChat),\"{FF002B}[Moderátor]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text); else if(IsPlayerAdminLevel (playerid, 2)) format(szChat,sizeof (szChat),\"{FF002B}[Admin]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text); else if(IsPlayerAdminLevel (playerid, 3)) format(szChat,sizeof (szChat),\"{FF002B}[Admin]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else if(IsPlayerAdminLevel (playerid, 4)) format(szChat,sizeof (szChat),\"{FF002B}[szerverFelügyelõ]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);else if(IsPlayerAdminLevel (playerid, 5)) format(szChat,sizeof (szChat),\"{FF002B}[Tulajdonos]{%06x}{3DE3B1}%s{007f9c}(%d):\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text); else format(szChat,sizeof (szChat),\"{FAF623}[Jatekos]{%06x}{03F2FF}%s{007f9c}(%d): {ffffff}%s\", GetPlayerColor(playerid) >>> 8, pName(playerid), playerid, text);//Ez pedig az a rész hogy ha se nem Admin se nem V.I.P. akkor is küldjön üzenetet SendClientMessageToAll(-1, szChat); return 0;} //Ha ilyened már van vedd ki.stock pName(playerid) { new name[24]; GetPlayerName(playerid,name,24); return name;}