SA-MP Forums Archive
little problem - 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: little problem (/showthread.php?tid=557430)



little problem - georgian1 - 13.01.2015

(362 : error 001: expected token: ",", but found "["
(362 : error 029: invalid expression, assumed zero
(362 : warning 215: expression has no effect
(362 : error 001: expected token: ";", but found "]"
(362 : fatal error 107: too many error messages on one line

LINE 3628 :

DestroyDynamicObject(FireInfo[i][fObject][0]);
DestroyDynamicObject(FireInfo[i][fObject][1]);


Re: little problem - Ciarannn - 14.01.2015

Try this:

Quote:

DestroyDynamicObject(FireInfo[i][fObject] == 0);
DestroyDynamicObject(FireInfo[i][fObject] == 1);




Re: little problem - georgian1 - 14.01.2015

thanks rep+


Re: little problem - Ciarannn - 14.01.2015

No problem


Re: little problem - georgian1 - 14.01.2015

681 : error 035: argument type mismatch (argument 1)
now i have this error in other script :

format(mes, sizeof(mes), "HQ: FOR EXAMPLE: %s", GetZone(X, Y, Z));
[LINE 6818] DepartmentChat(mes);


Re: little problem - xVIP3Rx - 14.01.2015

Show us the whole "DepartmentChat" stock/public.


Re: little problem - georgian1 - 14.01.2015

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Show us the whole "DepartmentChat" stock/public.
there is it but ... this is working on other cmd-s / scripts
for example :
format(mes, sizeof(mes), "(POLICE RADIO) %s[%d] BlaBla Text Hidden.", Name2(playerid),tmp);
DepartmentChat(CINFO,mes);
==============
BTW THERE IS IT ========
stock DepartmentChat(color,mess[],Medic = 1,DOD = 1, DOI = 1, FBI = 1,Mayor = 1)
{
for(new idxf=0, i=0; idxf<cvector_size(players); idxf++)
{
i = cvector_get(players, idxf);
if(!IsPlayerConnected(i) || !pData[i][pFraction] || pData[i][pJail]) continue;
new fraction = pData[i][pFraction];
if(Medic && fraction == 2 || DOD && fraction == 8 || DOI && fraction == 9 || FBI && fraction == 11 || Mayor && fraction == 15)
{
SendClientMessage(i,color,mess);
}
}
}


Re: little problem - xVIP3Rx - 14.01.2015

You forgot to add a color here, try this
pawn Код:
DepartmentChat(CINFO, mes);



Re: little problem - georgian1 - 14.01.2015

hmm i already tried it 30 min ago but same error xD thanks anyway fixed now