Need Help
#1

i am getting this errors!!

this is script(Example)::

Код:
CMD:tmenu(playerid, params[])
{
	SendClientMessage(playerid, COLOR_GREEN, "___________________________________________________________________________");
    SendClientMessage(playerid, COLOR_LIGHTRED,"Avalable Teleports");
    SendClientMessage(playerid, COLOR_LIGHTRED,"Locations: grove ¦ drift1 ¦ lv ¦ sf ¦ beach ¦ aa ¦ sfa ¦ lva ¦ lsa ¦ lsrs ¦ sfrs ¦ bs ¦ market ");
    SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________________________");
	return 1;
}
and got this errors


Код:
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(100) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(101) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(102) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(103) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(112) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(121) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(130) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(139) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(148) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(157) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(166) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(175) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(184) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(193) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(202) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(211) : error 035: argument type mismatch (argument 2)
D:\samp03x_svr_R1-2_win32\filterscripts\te.pwn(220) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Errors.
Reply
#2

Show us the code from the error lines. Is that command related to the errors lines in any way?

If it does, then show us how you defined COLOR_GREEN and COLOR_LIGHTRED.
Reply
#3

It only gives error on SendClientMessage
Reply
#4

Quote:
Originally Posted by Ninad
Посмотреть сообщение
It only gives error on SendClientMessage
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Show us the code from the error lines. Is that command related to the errors lines in any way?

If it does, then show us how you defined COLOR_GREEN and COLOR_LIGHTRED.
And the rest of the colors you are using in SendClientMessage and give errors.
Reply
#5

REPLACE THIS

pawn Код:
CMD:tmenu(playerid, params[])
{
    SendClientMessage(playerid, 0x00FF00FF, "___________________________________________________________________________");
    SendClientMessage(playerid, 0xFFFF0000,"Avalable Teleports");
    SendClientMessage(playerid, 0xFFFF0000,"Locations: grove ¦ drift1 ¦ lv ¦ sf ¦ beach ¦ aa ¦ sfa ¦ lva ¦ lsa ¦ lsrs ¦ sfrs ¦ bs ¦ market ");
    SendClientMessage(playerid, 0x00FF00FF,"___________________________________________________________________________");
    return 1;
}
Reply
#6

Can you explain,i don't understand!!
Reply
#7

Alright. The problem might be in the colors. Instead of using an integer/hexadecimal, you may use something else and as a result errors are given.

Colors must be defined like:
pawn Код:
// an example
#define COLOR_GREEN 0x00FF00FF
and the rest like the above example.
Reply
#8

may be the color definition
Reply
#9

Ohhhh thx!!!!


Thank you all of you guys!!!
Reply
#10

i am getting one more error!

D:\samp03x_svr_R1-2_win32\filterscripts\tels.pwn(30) : error 029: invalid expression, assumed zero
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)