SA-MP Forums Archive
Server crashing after 1h rep+ - 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)
+--- Thread: Server crashing after 1h rep+ (/showthread.php?tid=579758)



Server crashing after 1h rep+ - Mijata - 29.06.2015

Код:
[20:35:15] *** Streamer Plugin: Warning: Include file version (0x26105) does not match plugin version (0x27401) (script might need to be recompiled with the latest include file)
[20:35:15] *** CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
[20:35:15] *** CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
[20:35:15] *** CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
[20:35:15] *** CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
[20:35:15] *** CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
server got crashed after 1/2 h what is problem


Re: Server crashing after 1h rep+ - baba1234 - 29.06.2015

You have less parameters on your CreateDynamicMapIcon, u need to set one more parameter u forgot CreateDynamicMapIcon(Float, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0, style = MAPICON_LOCAL);
this is how it should be..


Re: Server crashing after 1h rep+ - Mijata - 29.06.2015

i don't have CreateDynamicMapicon

only : SetPlayerMapIcon(playerid, 11,268.5683,1885.2427,-29.8649, 30, 0,MAPICON_LOCAL);


Re: Server crashing after 1h rep+ - baba1234 - 29.06.2015

This error that u posted here it shows that u have created DynamicMapIcons and that u didnt put all parametars into the brackets. And I would recommend u that u put streamer include and plugin of the same version of streamer. So download the streamer and put the include and plugin of the same version of streamer.


Re: Server crashing after 1h rep+ - Mijata - 29.06.2015

can u give me link for this version
Quote:

Include file version (0x26105) does not match plugin version (0x27401)




Re: Server crashing after 1h rep+ - baba1234 - 29.06.2015

Here is the link of the 2.7.7 version https://github.com/samp-incognito/sa...ses/tag/v2.7.7


Re: Server crashing after 1h rep+ - Mijata - 29.06.2015

can you help me why cops can't get message in this code

Quote:

if(pickupid == Jetpack)
{
if(gTeam[playerid] == C1) return 0;
else
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
DestroyPickup(Jetpack);
SetTimer("StealAgain",1200000,false);
SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
for(new i=0; i <MAX_PLAYERS; i++)
{
if(gTeam[i] == C1)
{
THIS MESSAGE------------> GameTextForPlayer(i,"~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!", 2000, 4);
}
}
}
}
return 1;
}




Re: Server crashing after 1h rep+ - baba1234 - 29.06.2015

What should that suppose to do C1 is the cops or what ?


Re: Server crashing after 1h rep+ - Darkwood17 - 29.06.2015

Код:
GameTextForPlayer(i,"~b~Cops~n~~w~intruder stole the~n~~r~jetpack~n~~w~stop him immediately!", 2000, 4);
Quote:
Originally Posted by SA-MP Wiki
Be careful, using too many text colors or special characters in one gametext may crash every player the gametext is shown to. Additionally, avoid using an uneven usage of the ~ character.
Example: ~~r~Hello, ~g~how are ~y~~you?~



Re: Server crashing after 1h rep+ - Mijata - 29.06.2015

will now work or i must test?