[HELP] How to fix this?
#4

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello.

Try to upload your streamer include and plugin. Maybe this will be enough to remove the errors.
upload or replace with new plugin and inc ? sorry, i can't speak english much

Quote:
Originally Posted by Shinja
Посмотреть сообщение
You using more params than should be
PHP код:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance 300.0);
CreateDynamicMapIcon(Float:xFloat:yFloat:ztypecolorworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0style MAPICON_LOCAL); 
Show an example of CreateDynamicObject and an example of CreateDynamicMapIcon from your script
PHP код:
LoadDynamicMapIcons()
{
    new 
arrCoords[7][64];
    new 
strFromFile2[256];
    new 
Filefile fopen("dynamicmapicons.cfg"io_read);
    if (
file)
    {
        new 
idx;
        while (
idx sizeof(DMPInfo))
        {
            
fread(filestrFromFile2);
            
splits(strFromFile2arrCoords'|');
              
DMPInfo[idx][dmpMarkerType] = strval(arrCoords[0]);
              
DMPInfo[idx][dmpColor] = strval(arrCoords[1]);
              
DMPInfo[idx][dmpVW] = strval(arrCoords[2]);
              
DMPInfo[idx][dmpInt] = strval(arrCoords[3]);
              
DMPInfo[idx][dmpPosX] = floatstr(arrCoords[4]);
              
DMPInfo[idx][dmpPosY] = floatstr(arrCoords[5]);
              
DMPInfo[idx][dmpPosZ] = floatstr(arrCoords[6]);
              if(
DMPInfo[idx][dmpMarkerType] != 0)
              {
                
DMPInfo[idx][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[idx][dmpPosX], DMPInfo[idx][dmpPosY], DMPInfo[idx][dmpPosZ], DMPInfo[idx][dmpMarkerType], DMPInfo[idx][dmpColor], DMPInfo[idx][dmpVW], DMPInfo[idx][dmpInt], -1500.0);
            }
            
idx++;
        }
        
fclose(file);
    }
    return 
1;

PHP код:
    if(strcmp(choice"position"true) == 0)
    {
        
GetPlayerPos(playeridDMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ]);
        
DMPInfo[mapiconid][dmpInt] = GetPlayerInterior(playerid);
        
DMPInfo[mapiconid][dmpVW] = GetPlayerVirtualWorld(playerid);
        
SendClientMessageEx(playeridCOLOR_WHITE"You have changed the position!");
        if(
IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
        
DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1500.0);
        
SaveDynamicMapIcons();
        
format(stringsizeof(string), "%s has edited MapIconID %d's Position."GetPlayerNameEx(playerid), mapiconid);
        
Log("logs/dmpedit.log"string);
        return 
1;
    }
    else if(
strcmp(choice"delete"true) == 0)
    {
        
SendClientMessageEx(playeridCOLOR_WHITE"You have deleted the map icon!");
        
DMPInfo[mapiconid][dmpPosX] = 0.0;
        
DMPInfo[mapiconid][dmpPosY] = 0.0;
        
DMPInfo[mapiconid][dmpPosZ] = 0.0;
        
DMPInfo[mapiconid][dmpVW] = 0;
        
DMPInfo[mapiconid][dmpInt] = 0;
        
DMPInfo[mapiconid][dmpMarkerType] = 0;
        
DMPInfo[mapiconid][dmpColor] = 0;
        
SaveDynamicMapIcons();
        if(
IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
        
format(stringsizeof(string), "%s has deleted MapIconID %d."GetPlayerNameEx(playerid), mapiconid);
        
Log("logs/dmpedit.log"string);
        return 
1;
    }
    else if(
strcmp(choice"markertype"true) == 0)
    {
        
DMPInfo[mapiconid][dmpMarkerType] = amount;
        
format(stringsizeof(string), "You have set the marker type to %d."amount);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        if(
IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
        
DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1500.0);
        
format(stringsizeof(string), "%s has edited MapIconID %d's Marker Type to %d."GetPlayerNameEx(playerid), mapiconidamount);
        
Log("logs/dmpedit.log"string);
    }
    else if(
strcmp(choice"color"true) == 0)
    {
        
DMPInfo[mapiconid][dmpColor] = amount;
        
format(stringsizeof(string), "You have set the color to %d."amount);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        if(
IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
        
DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1500.0);
        
format(stringsizeof(string), "%s has edited MapIconID %d's Color to %d."GetPlayerNameEx(playerid), mapiconidamount);
        
Log("logs/dmpedit.log"string);
    }
    
SaveDynamicMapIcons();
    return 
1;

Reply


Messages In This Thread
[HELP] How to fix this? - by OsvaldoS - 12.08.2016, 16:48
Re: [HELP] How to fix this? - by Mencent - 12.08.2016, 16:52
Re: [HELP] How to fix this? - by Shinja - 12.08.2016, 16:52
Re: [HELP] How to fix this? - by OsvaldoS - 12.08.2016, 17:06
Re: [HELP] How to fix this? - by OsvaldoS - 12.08.2016, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)