Little small question
#1

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
Reply
#2

"DynamicOrgs/%i,ini"

Shouldn't ,ini be .ini?
Reply
#3

Yes it's .ini
Reply
#4

oops my bad small mistake xD i was in a rush
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)