Help me , system phone 911
#1

Who know fix me?


Quote:

./includes/perp.pwn(26899) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26912) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26925) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(2693 : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26951) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26952) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26954) : error 076: syntax error in the expression, or invalid function call
./includes/perp.pwn(26957) : warning 213: tag mismatch
./includes/perp.pwn(26957) : error 032: array index out of bounds (variable "Calls")
./includes/perp.pwn(26967) : warning 202: number of arguments does not match definition
./includes/perp.pwn(26967) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


21 Errors.

Code error:
Quote:

stock SendCallToQueue(callfrom, description[], area[], mainzone[], type)
{
new bool:breakingloop = false, newid = INVALID_CALL_ID, string[128];

for(new i; i < MAX_CALLS; i++)
{
if(!breakingloop)
{
if(Calls[i][HasBeenUsed] == 0)
{
breakingloop = true;
newid = i;
}
}
}
if(newid != INVALID_CALL_ID)
{
foreach(new i: Player)
{
if(0 <= PlayerInfo[i][pMember] < MAX_GROUPS)
{
for(new j; j < arrGroupData[PlayerInfo[i][pMember]][g_iJCount]; j++)
{
if(strcmp(arrGroupJurisdictions[PlayerInfo[i][pMember]][j][g_iAreaName], area, true) == 0 || strcmp(arrGroupJurisdictions[PlayerInfo[i][pMember]][j][g_iAreaName], mainzone, true) == 0)
{
if(type == 0 && IsACop(i))
{
format(string, sizeof(string), "|____________Cuoc Goi Khan Cap____________|");
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Nguoi trinh bao: %s, So dien thoai: %s, Dia diem: %s", GetPlayerNameEx(callfrom), pPnumber, area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dich vu: %s", IsACop);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dia diem: %s", area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Mieu ta: %s", description);
SendClientMessageEx(i, COLOR_CYAN, string);
}
if(type == 1 && IsAMedic(i))
{
format(string, sizeof(string), "|____________Cuoc-Goi Khan Cap____________|");
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Nguoi trinh bao: %s, So dien thoai: %s, Dia diem: %s", GetPlayerNameEx(callfrom), pPnumber, area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dich vu: %s", IsAMedic);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dia diem: %s", area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Mieu ta: %s", description);
SendClientMessageEx(i, COLOR_CYAN, string);
}
if(type == 2 && IsACop(i))
{
format(string, sizeof(string), "|____________Cuoc-Goi Khan Cap____________|");
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Nguoi trinh bao: %s, So dien thoai: %s, Dia diem: %s", GetPlayerNameEx(callfrom), pPnumber, area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dich vu: %s", IsACop);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dia diem: %s", area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Mieu ta: %s", description);
SendClientMessageEx(i, COLOR_CYAN, string);
}
if(type == 3 && (IsACop(i) || IsATowman(i)))
{
format(string, sizeof(string), "|____________Cuoc-Goi Khan Cap____________|");
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Nguoi trinh bao: %s, So dien thoai: %s, Dia diem: %s", GetPlayerNameEx(callfrom), pPnumber, area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dich vu: %s", IsACop, IsATowman);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Dia diem: %s", area);
SendClientMessageEx(i, COLOR_CYAN, string);
format(string, sizeof(string), "Mieu ta: %s", description);
SendClientMessageEx(i, COLOR_CYAN, string);
}
}
}
}
}
SetPVarInt(callfrom, "Has911Call", 1);
strmid(Calls[newid][Area], area, 0, strlen(area), 2;
strmid(Calls[newid][IsAMedic], mainzone, 0, strlen(IsAMedic), 2;
strmid(Calls[newid][IsATowman], mainzone, 0, strlen(IsATowman), 2;
strmid(Calls[newid][MainZone], mainzone, 0, strlen(mainzone), 2;
strmid(Calls[newid][IsACop], IsACop, 0, strlen(IsACop), 2;
strmid(Calls[newid][Description], description, 0, strlen(description), 12;
Calls[newid][CallFrom] = callfrom;
Calls[newid][pPnumber] = pPnumber;
Calls[newid][Type] = type;
Calls[newid][TimeToExpire] = 0;
Calls[newid][HasBeenUsed] = 1;
Calls[newid][BeingUsed] = 1;
Calls[newid][CallExpireTimer] = SetTimerEx("CallTimer", 60000, 0, "d", newid);
}
else
{
ClearCalls();
SendCallToQueue(callfrom, description, area, mainzone, type, pPnumber, IsACop, IsATowman, IsAMedic);
}
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)