22.03.2014, 12:07
Код:
public Update(index, response_code, data[]) { if(response_code == 200) { **save 'date' to string } }
public Update(index, response_code, data[]) { if(response_code == 200) { **save 'date' to string } }
// global:
new Update_data[128];
strcpy(Update_data, data, 128);
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
It depends on what you want to do with it. If you want to store the data to a global variable (for everyone) then:
pawn Код:
pawn Код:
pawn Код:
|
C:\Users\Ronaldo\Music\Bass\samp03z_svr_R1_win32\filterscripts\CreamyProtection.pwn(94) : error 033: array must be indexed (variable "Update_data") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(Update_data > CP_VERSION)
if (strcmp(Update_data, CP_VERSION))
{
// versions do not match
}
#define CP_VERSION "1.0"