Problem with function - 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: Problem with function (
/showthread.php?tid=243714)
Problem with function -
woaha - 24.03.2011
I have little problem with this!
If i call this function from ongamemodeinit, i am getting only CJ skin available on spawn. Why?
pawn Код:
#define MAX_FIXADS 150
#define FIXCNTERKYLTTIFILE "ads/korjaamols/kyltit.ini" // ff
enum FixADInfo
{
dblank,
Float:adX,
Float:adY,
Float:adZ,
adloop,
Text3D:adloope
};
new kyltticoords[MAX_FIXADS][FixADInfo];
stock LoadFixCenterAds()
{
new SplitDiv[3][MAX_FIXADS];
new filestring[256];
new File: file = fopen(FIXCNTERKYLTTIFILE, io_read);
if (file)
{
for(new fixadid = 0; fixadid < MAX_FIXADS; fixadid++)
{
fread(file, filestring);
split(filestring, SplitDiv, ',');
kyltticoords[fixadid][adX] = floatstr(SplitDiv[0]);
kyltticoords[fixadid][adY] = floatstr(SplitDiv[1]);
kyltticoords[fixadid][adZ] = floatstr(SplitDiv[2]);
kyltticoords[fixadid][adloop] = CreateDynamic3DTextLabel(fixcentername[fixcenteradtext], ADS_COLOR, kyltticoords[fixadid][adX], kyltticoords[fixadid][adY], kyltticoords[fixadid][adZ], DRAW_DISRANCE_3DTEXT, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, TEST_LOS, -1, -1, -1, 100.0);
kyltticoords[fixadid][adloope] = CreateDynamicPickup(cSetting[fixadid], PICKUP_TYPE_NONE, kyltticoords[fixadid][adX], kyltticoords[fixadid][adY], kyltticoords[fixadid][adZ]);
}
}
fclose(file);
}
No errors/warnings on compile.
Re: Problem with function -
woaha - 25.03.2011
bump
Re: Problem with function -
woaha - 26.03.2011
bump
Re: Problem with function -
Stigg - 26.03.2011
Quote:
Originally Posted by woaha
bump
|
Your supposed to wait 24 hr's before bumping your topic.
Show your add player class bit's n pieces.
Re: Problem with function -
woaha - 27.03.2011
There is nothing wrong in add player class. Or on player spawn or request class.
Problem still exist... :/
Re: Problem with function -
woaha - 28.03.2011
bump
Re: Problem with function -
woaha - 29.03.2011
bump
Re: Problem with function -
woaha - 30.03.2011
bump
Re: Problem with function -
KaleOtter - 30.03.2011
edit: nvm read it wrong.
Show us your Ongamemodeinit
Re: Problem with function -
woaha - 31.03.2011
Well, there is much data but... they should not cause that problem?
pawn Код:
ManualVehicleEngineAndLights();
SetGameModeText(GAME_MODE_NAME);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(SHOW_TAGS);
SetNameTagDrawDistance(TAG_DRAW_DISTANCE);
EnableStuntBonusForAll(STUNTBONUS_FOR_ALL);
txtTimeDisp = TextDrawCreate(130, 315, "00:00:00");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp, 0); // no shadow
TextDrawSetOutline(txtTimeDisp, 2); // thickness 1
TextDrawBackgroundColor(txtTimeDisp, 0x000000FF);
TextDrawColor(txtTimeDisp, 0xFFFFFFFF);
TextDrawAlignment(txtTimeDisp, 3);
TextDrawLetterSize(txtTimeDisp, 0.5, 1.5);
for(new i; i < sizeof(Coords); i++)
{
CreateDynamicMapIcon(Coords[i][Xo],Coords[i][Yo],Coords[i][Zo],Coords[i][IDo], 0, -1, -1, -1, MAPICON_DISTANCE);
}
for(new c=1; c < vehcount; c++)
{
Gas[c] = VehicleInfo[c][gasse];
}
for(new c=1; c < vehcount; c++)
{
ModVehicle(c);
}
Menuitems...
MakeGates...
AddPlayerClasses...
CreateDynamic3DTextLabels...
and much objects...