Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Belajac poslato Decembar 07, 2012, 12:07:48 POSLE PODNE

Naslov: [POMOC]Errori oko komande
Poruka od: Belajac poslato Decembar 07, 2012, 12:07:48 POSLE PODNE
Skripta koju kiristim:CLRP
Detaljan opis problema:
Erori
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

Deo skripte:
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");
}
Naslov: Odg: [POMOC]Errori oko komande
Poruka od: Blaeks poslato Decembar 07, 2012, 12:08:47 POSLE PODNE
To stavis na kraj skripte, izvan nekog callbacka, ali pazi, za ovo ti treba ZCMD include.
Naslov: Odg: [POMOC]Errori oko komande
Poruka od: 99Mile99 poslato Decembar 07, 2012, 15:51:52 POSLE PODNE
ma stavi na kraj skripte ali skroz dolje i ubaci zcmd i staci #include <zcmd> na pocetak skripte
Naslov: Odg: [POMOC]Errori oko komande
Poruka od: Belajac poslato Decembar 07, 2012, 21:32:11 POSLE PODNE
Stavio sam na kraj ali opet isto
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(61334) : error 029: invalid expression, assumed zero
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(61334) : error 017: undefined symbol "cmd_test"
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(61334) : error 029: invalid expression, assumed zero
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(61334) : fatal error 107: too many error messages on one line
Naslov: Odg: [POMOC]Errori oko komande
Poruka od: --Lood-- poslato Decembar 07, 2012, 22:28:58 POSLE PODNE
Brt negde si zaboravio zatvoriti zagradu..cmd iznad te ili nesto npr iznad te CMD:test
CMD:cmd(playerid, params)
{

if(....)
{

return 1;
}

Naslov: Odg: [POMOC]Errori oko komande
Poruka od: Belajac poslato Decembar 07, 2012, 23:23:13 POSLE PODNE
Ti mi kazi gde, zato vas i pitam jer ne mogu da uocim

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");
Naslov: Odg: [POMOC]Errori oko komande
Poruka od: Blaeks poslato Decembar 08, 2012, 00:36:24 PRE PODNE
ovako 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");
}
return 1;
}