21.11.2013, 18:33
Hey Guys .
i wrote a filterscript and when i want to compile i get these errors .
PAWNO codes :
Can Someone Help ?
i wrote a filterscript and when i want to compile i get these errors .
Код:
D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(27) : warning 219: local variable "text" shadows a variable at a preceding level D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(28) : warning 202: number of arguments does not match definition D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(28) : warning 202: number of arguments does not match definition D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(28) : error 035: argument type mismatch (argument 1) D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(31) : error 008: must be a constant expression; assumed zero D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(31) : error 008: must be a constant expression; assumed zero D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(34) : warning 202: number of arguments does not match definition D:\Downloads\samp03x_svr_R2_win32\pawno\testchat.pwn(34) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
pawn Код:
#include <a_samp>
#include <dudb>
#define fsname "Ranks In Chat By Dir[3]ect[0]r"
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Ranks In Chat By Dir[3]ect[0]r");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
print("Ranks In Chat By Dir[3]ect[0]r Unloaded ...");
return 1;
}
public OnPlayerText(playerid, text[])
{
new text[1024];
if(udb_Exists(GetPlayerName(playerid)))
{
new
AdminLevel[playerid] = dUserINT(GetPlayerName(playerid)).("Adminlevel");
if (AdminLevel[playerid] > 0)
{
format(text, sizeof(text), "{FF0000}[ADMIN]%s[%s] {ffff00}: {FFFFFF}%s",GetPlayerColor(playerid),GetPlayerName(playerid), text);
SendClientMessageToAll(playerid,text);
}
}
return 0;
}