View Single Post
API
Veteran Member
Join Date: May 2006
Old 06-11-2013 , 10:20   Re: SourceModGen - Data modeling tool
Reply With Quote #9

SMGen creates a copy function.

Example:
Code:
stock Handle:War3_CopyWar3Race(Handle:p_War3Race) {
    new Handle:s_War3Race = CreateArray(8);

    PushArrayCell(s_War3Race, GetArrayCell(p_War3Race, 0));
    decl String:s_ShortNameOutput[32];
    GetArrayString(p_War3Race, 1, s_ShortNameOutput, 32);
    PushArrayString(s_War3Race, s_ShortNameOutput);
    decl any:s_DescriptionOutput[5];
    GetArrayArray(p_War3Race, 2, s_DescriptionOutput, 5);
    PushArrayArray(s_War3Race, s_DescriptionOutput, 5);

    return s_War3Race;
}
__________________
API is offline
Send a message via AIM to API