Raised This Month: $51 Target: $400
 12% 

Createdatapack errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ecca
Sexy Santa
Join Date: Jan 2011
Old 12-29-2011 , 21:02   Createdatapack errors
Reply With Quote #1

Hmm, i just tried to use createdatapack and i get errors on this one


//HERE ARE THE ERRORS ON THE SCREENSHOT!!
PHP Code:
//HERE ARE THE ERRORS ON THE SCREENSHOT!!

new Handle:dpa CreateDataPack(); // Creating DataPack for export
            
WritePackCell(dpalangd);
            
WritePackCell(dpaanledning);
            
WritePackCell(dpauser);
            
WritePackCell(dpaadmin);
            
WritePackCell(dpatsteamid);
            
WritePackCell(dpaasteamid);
            
WritePackCell(dpaklocka); 
and i want to use them like here

PHP Code:

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(dpalangdsizeof(langd));
            
ReadPackString(dpaanledningsizeof(anledning));
            
ReadPackString(dpausersizeof(user));
            
ReadPackString(dpaadminsizeof(admin));
            
ReadPackString(dpatsteamidsizeof(tsteamid));
            
ReadPackString(dpaklockasizeof(klocka));
            
ResetPack(dpa);
            
CloseHandle(dpa); 
        } 
Is there any wrong with these lines?

Errors

__________________

Last edited by ecca; 12-29-2011 at 21:04. Reason: Fixed error screenshot
ecca is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 12-29-2011 , 21:59   Re: Createdatapack errors
Reply With Quote #2

  1. Post your whole code, wth should we know which is line x?
  2. ResetPack comes before reading.
  3. you wrote packcell asteamid, but did not read it.
Yours sincerely
Impact
__________________

Last edited by Impact123; 12-29-2011 at 22:01.
Impact123 is offline
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 12-29-2011 , 22:44   Re: Createdatapack errors
Reply With Quote #3

WritePackString
__________________
javalia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode