19.08.2011, 00:05
Well i got a dynamic organization and i made
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
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;
}