PDA

View Full Version : Createdatapack errors


ecca
12-29-2011, 21:02
Hmm, i just tried to use createdatapack and i get errors on this one


//HERE ARE THE ERRORS ON THE SCREENSHOT!!

//HERE ARE THE ERRORS ON THE SCREENSHOT!!

new Handle:dpa = CreateDataPack(); // Creating DataPack for export
WritePackCell(dpa, langd);
WritePackCell(dpa, anledning);
WritePackCell(dpa, user);
WritePackCell(dpa, admin);
WritePackCell(dpa, tsteamid);
WritePackCell(dpa, asteamid);
WritePackCell(dpa, klocka);
and i want to use them like here



decl String:langd[32];
decl String:anledning[100];
decl String:user[64];
decl String:admin[64];
decl String:tsteamid[64];
decl String:asteamid[64];
decl String:klocka[100];
if(dpa != INVALID_HANDLE)
{
ReadPackString(dpa, langd, sizeof(langd));
ReadPackString(dpa, anledning, sizeof(anledning));
ReadPackString(dpa, user, sizeof(user));
ReadPackString(dpa, admin, sizeof(admin));
ReadPackString(dpa, tsteamid, sizeof(tsteamid));
ReadPackString(dpa, klocka, sizeof(klocka));
ResetPack(dpa);
CloseHandle(dpa);
}

Is there any wrong with these lines?

Errors

http://i.imgur.com/N2v1l.png

Impact123
12-29-2011, 21:59
Post your whole code, wth should we know which is line x?
ResetPack comes before reading.
you wrote packcell asteamid, but did not read it.

Yours sincerely
Impact

javalia
12-29-2011, 22:44
WritePackString