SA-MP Forums Archive
Organization Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Organization Help (/showthread.php?tid=245083)



Organization Help - iRemix - 29.03.2011

Hey!

Just wondering if anyone can help me, with this code it loads all of my organizations when the server is restarted, but its not working for some reason. I've added it to OnGameModeInit.

When I spawn I see the checkpoint for like one second, but its on my current x, y, z. Then it dissapears, I'm quite confused.

pawn Code:
stock LoadOrganizations()
{
    for(new i = 0; i < MAX_ORGS; i++)
    {
        format(oFile, sizeof(oFile), "zRP/Organizations/%i.ini", OrganizationInfo[i][OrganizationID]);
       
        OrganizationInfo[i][OrganizationID] = dini_Int(oFile, "OrganizationID");
        OrganizationInfo[i][OrganizationCP] = dini_Int(oFile, "OrganizationCP");
        OrganizationInfo[i][OrganizationName] = dini_Int(oFile, "OrganizationName");
        OrganizationInfo[i][OrganizationType] = dini_Int(oFile, "OrganizationType");

        OrganizationInfo[i][OrganizationX] = dini_Float(oFile, "OrganizationX");
        OrganizationInfo[i][OrganizationY] = dini_Float(oFile, "OrganizationY");
        OrganizationInfo[i][OrganizationZ] = dini_Float(oFile, "OrganizationZ");
       
        OrganizationInfo[i][OrganizationCP] = CreateCheckpoint(-1, OrganizationInfo[i][OrganizationX], OrganizationInfo[i][OrganizationY], OrganizationInfo[i][OrganizationZ], 1.0, 10);
       
    }
    return 1;
}
Any help?


Re: Organization Help - iRemix - 30.03.2011

It's kind of important, please can someone read ASAP.


Re: Organization Help - iRemix - 01.04.2011

Bumpp


Re: Organization Help - LiamM - 02.04.2011

Yeah man, I read it.. Do you use a streamer?