SA-MP Forums Archive
Need Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help (/showthread.php?tid=467106)



Need Help - Ninad - 01.10.2013

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.



Re: Need Help - Konstantinos - 01.10.2013

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.


Re: Need Help - Ninad - 01.10.2013

It only gives error on SendClientMessage


Re: Need Help - Konstantinos - 01.10.2013

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.


Re: Need Help - Windrush - 01.10.2013

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;
}



Re: Need Help - Ninad - 01.10.2013

Can you explain,i don't understand!!


Re: Need Help - Konstantinos - 01.10.2013

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.


Respuesta: Need Help - DanDRT - 01.10.2013

may be the color definition


Re: Need Help - Ninad - 01.10.2013

Ohhhh thx!!!!


Thank you all of you guys!!!


Re: Need Help - Ninad - 03.10.2013

i am getting one more error!

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