SA-MP Forums Archive
Fix errors - 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: Fix errors (/showthread.php?tid=397994)



Fix errors - Belajac - 07.12.2012

Hello,how to fix this errors


Код:
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(58141) : error 029: invalid expression, assumed zero
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(58141) : error 017: undefined symbol "cmd_test"
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(58141) : error 029: invalid expression, assumed zero
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(58141) : fatal error 107: too many error messages on one line
Код:
CMD:uci(playerid,params[])
	{
	if(PlayerToPoint(5.0,playerid, 2811.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2812.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2813.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2814.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");

}
if(PlayerToPoint(5.0,playerid, 2815.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2816.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
//=================================================TEST==================
CMD:test(playerid,params[]) --- 58141
{
	if(PlayerToPoint(5.0,playerid, 2817.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2818.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2819.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2820.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2821.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2822.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}



Re: Fix errors - Red_Dragon. - 07.12.2012

pawn Код:
CMD:uci(playerid,params[])
    {
    if(PlayerToPoint(5.0,playerid, 2811.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2812.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2813.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2814.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");

}
if(PlayerToPoint(5.0,playerid, 2815.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2816.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
//=================================================TEST==================
CMD:test(playerid, params[]) --- 58141
{
    if(PlayerToPoint(5.0,playerid, 2817.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2818.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2819.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2820.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2821.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
if(PlayerToPoint(5.0,playerid, 2822.8933,2918.5095,36.5046))
{
SendClientMessage(playerid, COLOR_WHITE, "aaaa");
}
try this


Re: Fix errors - Belajac - 07.12.2012

This don't work


Re: Fix errors - tyler12 - 07.12.2012

pawn Код:
CMD:uci(playerid,params[])
{
    if(PlayerToPoint(5.0,playerid, 2811.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2812.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2813.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2814.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2815.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2816.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    return 1;
}
//=================================================TEST==================
CMD:test(playerid, params[]) //--- 58141
{
    if(PlayerToPoint(5.0,playerid, 2817.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2818.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2819.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2820.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2821.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    if(PlayerToPoint(5.0,playerid, 2822.8933,2918.5095,36.5046))
    {
        SendClientMessage(playerid, COLOR_WHITE, "aaaa");
    }
    return 1;
}
Brackets..


Re: Fix errors - blackbhuta - 07.12.2012

You can try like this,
Код:
CMD:uci(playerid,params[])
{
	if(PlayerToPoint(5.0,playerid, 2811.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2812.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2813.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2814.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2815.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2816.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        return 1;
}
//=================================================TEST==================
CMD:test(playerid,params[]) --- 58141
{
	if(PlayerToPoint(5.0,playerid, 2817.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2818.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2819.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2820.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2821.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        else if(PlayerToPoint(5.0,playerid, 2822.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa");
        return 1;
}