invalid function or declaration - 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: invalid function or declaration (
/showthread.php?tid=343125)
invalid function or declaration -
zgintasz - 16.05.2012
Hi guys,
what's wrong with it? I'm getting
error 010: invalid function or declaration
pawn Код:
stock SendMessageToGang( gangID, COLOR, msg[ ] ) // here is error
{
for( new i; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) && variable[ i ][ var ] == gangID )
{
SendClientMessage( i, COLOR, msg );
}
}
}
Re: invalid function or declaration -
CoaPsyFactor - 16.05.2012
color is not integer its hex, so change COLOR to COLOR[]
Re: invalid function or declaration -
zgintasz - 16.05.2012
No, you are wrong - color is hex, hex is integer.
I fixed it...
Re: invalid function or declaration -
CoaPsyFactor - 16.05.2012
yea, you are right
i could use a ****** :P what was error?