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

[Help] Get Id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-02-2015 , 00:43   [Help] Get Id
Reply With Quote #1

PHP Code:
public loadModel(model[])
{
    new 
file fopen(model"rt")
    new 
numseqseqindexxFloat:framerate
    
new seqDesc[SEQ_DESC]

    
fseek(file164SEEK_SET)
    
fread(filenumseqBLOCK_INT)
    
fread(fileseqindexBLOCK_INT)

    
fseek(fileseqindex 176 xSEEK_SET)
    
fread_blocks(fileseqDesc[SEQ_LABEL], 32BLOCK_CHAR)
    
fread(fileseqDesc[SEQ_FPS], BLOCK_INT)
    
fseek(file20SEEK_CUR)
    
fread(fileseqDesc[SEQ_FRAMES], BLOCK_INT)

    
framerate 256.0 Float:seqDesc[SEQ_FPS] / (seqDesc[SEQ_FRAMES] - 1)
    
seqDesc[SEQ_FRAMERATE] = _:framerate

    
/* ============================= */
    
    
ArrayPushArray(g_animDataseqDesc// Case 0
    
if(Buscar_Movimento_1(id) == 1
    {
        
formatex(szMenucharsmax(szMenu), "\wNormal")    
        
menu_additem(MenuszMenu""0)
    }
    else
    {
        
formatex(szMenucharsmax(szMenu), "\dNormal")    
        
menu_additem(MenuszMenu""ITEM_DISABLED)
    }
    
fclose(file)

How do i get "id" for 'Buscar_Movimento_1'?
Syturi0 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-02-2015 , 00:50   Re: [Help] Get Id
Reply With Quote #2

Based on the code you provided, no where. What is "id" supposed to be? If it's a player, what player? How is any of this code related to a player? You would typically pass it through the function. If you attach your .sma, we'll be able to help you out.
__________________

Last edited by fysiks; 09-02-2015 at 00:51.
fysiks is offline
Old 09-02-2015, 00:54
Syturi0
This message has been deleted by Syturi0. Reason: yolo
Old 09-02-2015, 00:57
Syturi0
This message has been deleted by Syturi0.
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-02-2015 , 02:48   Re: [Help] Get Id
Reply With Quote #3

I managed to fix it by my self, ty anyways.
Syturi0 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-02-2015 , 20:19   Re: [Help] Get Id
Reply With Quote #4

And what did you end up having to do?
__________________
fysiks 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 06:28.


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