18.11.2017, 19:38
Код:
C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(2966) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(3372) : warning 213: tag mismatch C:\Users\Madars\Desktop\Motion(ions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(4997) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(7094) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(7134) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(7174) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(12426) : error 092: functions may not return arrays of unknown size (symbol "Cof unknown size (symbol "Cof unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(22094) : error 092: functions may not return arrays of unknown size (symbol "Convert") C:\Users\Madars\Desktop\Motion-RP\gamemodes\motiongm.pwn(23359) : error 092: functions may not return arrays of unknown size (symbol "Convert") Pawn compiler 3.10.4 Copyright © 1997-2006, ITB CompuPhase 9 Errors.
Here's Convert function
Код:
stock Convert(seconds, stringTo[], size = sizeof(stringTo)) { stringTo[0] = 0x0; new result[4]; result[0] = floatround(seconds / (3600 * 24)); result[1] = floatround(seconds / 3600); result[2] = floatround((seconds / 60) - (result[1] * 60)); result[3] = floatround(seconds - ((result[1] * 3600) + (result[2] * 60))); switch(result[0]) { case 0: { switch(result[1]) { case 0: format(stringTo,size,"%02d:%02d",result[2],result[3]); default: format(stringTo,size,"%d:%02d:%02d",result[1],result[2],result[3]); } } } return stringTo; }
Код:
for(new i = 0; i < sizeof(GZInfo); i++) { if(GZSafeTime[i] > 0) { GZSafeTime[i]--; foreach(new x: Player) { if(PI[x][pMember] == GZInfo[i][gNapad] || PI[x][pMember] == GZInfo[i][gFrak]) { Convert(GZSafeTime[i], stringText); // line 2966 PlayerTextDrawSetString(x, CaptureTD[x][2], stringText); } } } }