[HELP] How to fix this?
#1

[09:43:10] *** CreateDynamicObject: Expecting 11 parameter(s), but found 12
[09:43:10] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10

i got so many massage like that when i starting server.exe
how to fix this ? and what is the problem
Reply
#2

Hello.

Try to upload your streamer include and plugin. Maybe this will be enough to remove the errors.
Reply
#3

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

PHP код:
    new dmv CreateObject(19355,1372.5912, -1892.274316.7167,0.00000.000090.0000);
    
SetObjectMaterialText(dmv"Dealer Motor"050"Arial"240, -32256, -167772161);
    new 
sura CreateObject(193551375.40845, -1892.2758816.71670,   0.000000.0000090.00000);
    
SetObjectMaterialText(sura"."050"Arial"240, -32256, -167772161);
    new 
kawasuki CreateObject(193551369.94348, -1892.2867416.71671,   0.000000.0000090.00000);
    
SetObjectMaterialText(kawasuki"."050"Arial"240, -32256, -167772161);
    new 
low CreateObject(193552131.88940, -1148.2993228.47620,   0.000000.0000090.00000);
    
SetObjectMaterialText(low"Dealerships \nLowRider"050"Arial"240, -32256, -167772161);
    
CreateDynamicObject(194471393.11011, -1894.0647016.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471393.09192, -1897.5689716.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471393.12500, -1901.0291716.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471383.49341, -1901.0822816.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471383.45959, -1897.5762916.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471383.46069, -1894.0697016.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471373.83081, -1894.0809316.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471373.83289, -1897.5711716.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471373.82080, -1901.0595716.36510,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471370.38965, -1897.5825216.36386,   0.0000090.0000090.00000);
    
CreateDynamicObject(194471370.27551, -1894.1127916.36386,   0.0000090.0000090.00000);
    
CreateDynamicObject(38511379.81873, -1892.3656012.95082,   0.000000.0000090.00000);
    
CreateDynamicObject(38511365.49292, -1892.3784213.00987,   0.000000.0000090.00000);
    
CreateDynamicObject(15231374.16345, -1892.2196012.48370,   0.000000.00000180.00000);
    
CreateDynamicObject(15231371.09424, -1892.3072512.48366,   0.000000.000000.00000);
    
CreateDynamicObject(38511362.70386, -1892.4249314.33599,   0.000000.0000090.00000);
    
CreateDynamicObject(38511382.64246, -1892.3813514.31723,   0.000000.0000090.00000);
    
CreateDynamicObject(193551372.59119, -1892.2742916.71670,   0.000000.0000090.00000);
    
CreateDynamicObject(193551369.94348, -1892.2867416.71671,   0.000000.0000090.00000); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)