SA-MP Forums Archive
Little small question - 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: Little small question (/showthread.php?tid=277712)



Little small question - Tanush123 - 19.08.2011

Well i got a dynamic organization and i made
pawn Код:
CMD:setocheck(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(params,"i",orgid)) return SendClientMessage(playerid,orange,"USAGE: /setocheck [orgid]");
    format(oFile,sizeof(oFile),"DynamicOrgs/%i,ini",orgid);
    {
        if(!dini_Exists(oFile)) return SendClientMessage(playerid,red,"ERROR: That Organization Id is INVALID!");
        GetPlayerPos(playerid,Float:X,Float:Y,Float:Z);
        dini_FloatSet(oFile,"CPX",Float:X);
        dini_FloatSet(oFile,"CPY",Float:Y);
        dini_FloatSet(oFile,"CPZ",Float:Z);
        CreateDynamicCP(dini_Float(oFile,"CPX"),dini_Float(oFile,"CPY"),dini_Float(oFile,"CPZ"),2.0,-1,-1,-1,100.0);
    }
    return 1;
}
For some reason i keep getting that organization Id is invalid and when i check the scriptfiles >> dynamicorgs >> And i could see the orgid are there but it shows organization id is invalid


Re: Little small question - Intoxicated - 19.08.2011

"DynamicOrgs/%i,ini"

Shouldn't ,ini be .ini?


Re: Little small question - Kingunit - 19.08.2011

Yes it's .ini


Re: Little small question - Tanush123 - 19.08.2011

oops my bad small mistake xD i was in a rush