how to fix this error when i added something - 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: how to fix this error when i added something (
/showthread.php?tid=521241)
how to fix this error when i added something -
ReD_DeVi - 22.06.2014
when i added the server msg
Код:
C:\Users\aman\Desktop\SATDM~RP V14\filterscripts\ChatBot.pwn(180) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
line 180
Re: how to fix this error when i added something -
ScripteRNaBEEL - 22.06.2014
show me full code after line 180.
Re: how to fix this error when i added something -
ReD_DeVi - 22.06.2014
here it is
pawn Код:
else
{
for(everyone = 13; everyone <= 500; everyone++)
{
if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
{
format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
SendClientMessage(everyone,COLOR_WHITE,string);
}
}
}
return 1;
}
Re: how to fix this error when i added something -
geohareas - 22.06.2014
Would you mind sharing the whole thing before else?
Re: how to fix this error when i added something -
ScripteRNaBEEL - 22.06.2014
Код:
else
{
for(everyone = 13; everyone <= 500; everyone++)
{
if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
{
format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
SendClientMessage(everyone,COLOR_WHITE,string);
}
}
}
return 1;
}
now try
Re: how to fix this error when i added something -
ReD_DeVi - 22.06.2014
here it is .....
pawn Код:
else
{
for(everyone = 12; everyone <= 500; everyone++)
{
if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
{
format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}Here are the list of cars Type{6FFF00}/cars ", playername);
SendClientMessage(everyone,COLOR_WHITE,string);
}
}
}
else
{
for(everyone = 13; everyone <= 500; everyone++)
{
if(IsPlayerConnected(everyone) && BlockBot[everyone] == 0)
{
format(string, sizeof(string),"{00A6FF}%s{FFFFFF}[MSG]:{FF00D0}if you want to see anims{6FFF00}/anims ", playername);
SendClientMessage(everyone,COLOR_WHITE,string);
}
}
}
return 1;
}
Re: how to fix this error when i added something -
ScripteRNaBEEL - 22.06.2014
did its work..
Re: how to fix this error when i added something -
ReD_DeVi - 22.06.2014
yes it works thanks nabeel