Help . argument type mismatch
#1

Hey Guys .
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.
PAWNO codes :

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;
}
Can Someone Help ?
Reply
#2

Hey Kia,
You're asking for scripting help. This belongs in the Scripting Help section, here: http://forum.sa-mp.com/forumdisplay.php?f=12
Reply
#3

Quote:
Originally Posted by DJ_Shocker
Посмотреть сообщение
Hey Kia,
You're asking for scripting help. This belongs in the Scripting Help section, here: http://forum.sa-mp.com/forumdisplay.php?f=12
Oh . You're Right .
And Should i create a new thread there ?
and sorry for my bad english !
Reply
#4

Quote:
Originally Posted by kia1424
Посмотреть сообщение
Oh . You're Right .
And Should i create a new thread there ?
and sorry for my bad english !
I would if I were you. You would probably get the help you need much faster.
And your english is fine I understood you pretty well!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)