little problem
#1

(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]);
Reply
#2

Try this:

Quote:

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

Reply
#3

thanks rep+
Reply
#4

No problem
Reply
#5

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);
Reply
#6

Show us the whole "DepartmentChat" stock/public.
Reply
#7

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);
}
}
}
Reply
#8

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

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


Forum Jump:


Users browsing this thread: 4 Guest(s)