PHP Code:
new String:partyname[MAXPLAYERS+1][256];
stock TF2DayZ_GetPartyInfo(client, String:info[][]) {
new ptyy = TF2DayZ_WhereIsClientPartyf(client);
if(ptyy != -1) {
strcopy(info[0], sizeof(info[0]), partyname[ptyy]); // Line 306
new j = 0;
for(new i=1; i<=7; i++) {
if(party[ptyy][i-1] != 0) {
new String:name[256];
GetClientName(party[ptyy][i-1], name, 256);
strcopy(info[i], sizeof(info[i]), name);
j+=1;
}
}
return j;
}
return -1;
}
Error
//SourceMod Batch Compiler
// by the SourceMod Dev Team
//// TDZMod.sp
//
// dayz/cparty.sp(306) : error 001: expected token: "]", but found "-integer value-"
// dayz/cparty.sp(306) : warning 215: expression has no effect
// dayz/cparty.sp(306) : error 001: expected token: ";", but found "]"
// dayz/cparty.sp(306) : error 029: invalid expression, assumed zero
// dayz/cparty.sp(306) : fatal error 190: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
//
// Compilation Time: 0.97 sec
// ----------------------------------------
Press enter to exit ...
I am making party system, but there is one error that i can't solve.
How to fix it?