MTA Deathmatch gamemode
#1

Hey everybody, Right now the gamemode of this server https://sampforum.blast.hk/showthread.php?tid=586946&page=2 just need an includes streamer.inc, So i put it now the error dissappear, can someone help me? Check the error below

Код:
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(81) : error 017: undefined symbol "Streamer_SetTickRate"
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(142) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(151) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(190) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(195) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(200) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(218) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(226) : warning 219: local variable "mapValues" shadows a variable at a preceding level
C:\Documents and Settings\user\Desktop\DM Server\pawno\include\MTA_LOAD.inc(303) : error 017: undefined symbol "Streamer_DestroyAllItems"
C:\Documents and Settings\user\Desktop\DM Server\gamemodes\dmrace.pwn(932) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\user\Desktop\DM Server\gamemodes\dmrace.pwn(932) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\user\Desktop\DM Server\gamemodes\dmrace.pwn(932) : error 036: empty statement
C:\Documents and Settings\user\Desktop\DM Server\gamemodes\dmrace.pwn(932) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

Im willing to give you rep. If you help me with these problems
Reply
#3

And how can we help you without some parts of code or sth?
Reply
#4

stock trcar(car[]) {
new tmp[MAX_STRING]; 932
set(tmp,car);
tmp=strreplace("[","(",tmp);
tmp=strreplace("]",")",tmp);
return tmp;
}
Reply
#5

forward ServerData_UpdateMAP();public ServerData_UpdateMAP(){
if(GetServerCount() == 0) return 0; [CODE:81]
if(GetServerCount() >= 1)
{
if(ServerData[Started] == false)
{
if(ServerData[Loading] == true) return 0;
ProgressForMap();
}
}
return true;
}
forward ServerData_AlivePlayers();public ServerData_AlivePlayers(){
if(GetAliveCount() == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(Spectekiler[i] == 1){ StopSpectate(i); }
TogglePlayerSpectating(i, 0);
}}
}
if(GetAliveCount() == 0 && ServerData[Started] == true)
{
TextDrawSetString(Waiting3, "MAP: ~w~~h~LOADING..");
TextDrawSetString(Waiting4, "AUTHOR: ~w~~h~LOADING..");
if(progressMap == true) return 0;
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(Spectekiler[i] == 1){ StopSpectate(i); }
}}
KillTimer(UMapTimer);
ServerData[Started] = false;
progressMap = true;
ProgressForMap();
}
return true;
}

forward serverData_SetMAP();public serverData_SetMAP(){
new s_Rand = random(19);
if(mapAcildi == false) {
switch(s_Rand)
{
case 0: format(ServerData[startMap],56,"daan-protocol-phantom");
case 1: format(ServerData[startMap],56,"dc-set-fire-to-everybody");
case 2: format(ServerData[startMap],56,"fakedeath-v6");
case 3: format(ServerData[startMap],56,"gus-wild-side");
case 4: format(ServerData[startMap],56,"javelin-stylex-club-trip");
case 5: format(ServerData[startMap],56,"jester-trip");
case 6: format(ServerData[startMap],56,"naval-gus-symon");
case 7: format(ServerData[startMap],56,"rafinha-merry-christmas");
case 8: format(ServerData[startMap],56,"ravolt-pargona-east");
case 9: format(ServerData[startMap],56,"ravolt-sizofrenik-sancilar");
case 10: format(ServerData[startMap],56,"sebas-craving");
case 11: format(ServerData[startMap],56,"sebasv13-future-dimensions");
case 12: format(ServerData[startMap],56,"rockzv5");
case 13: format(ServerData[startMap],56,"cookiev12");
case 14: format(ServerData[startMap],56,"cookiev13");
case 15: format(ServerData[startMap],56,"vortexv13");
case 16: format(ServerData[startMap],56,"xkinqxvol2");
case 17: format(ServerData[startMap],56,"555");
case 18: format(ServerData[startMap],56,"maximal-sky");
case 19: format(ServerData[startMap],56,"rafinha-the-evolution"); [142]
}}
new topla[166];
format(topla,166,"DMRace/%s/meta.xml",ServerData[startMap]);
new XMLml = xml_open(topla);
if (xml)
{
new buf[100],birles[156];
xml_get_string(xml, "meta/info", buf);
xml_get_string(xml, "meta/info/@name", buf); [151]
format(birles,156,"MAP: ~w~~h~%s",trcar(buf));
TextDrawSetString(Waiting3, birles);
xml_get_string(xml, "meta/info/@author", buf);
format(birles,156,"AUTHOR: ~w~~h~%s",trcar(buf));
TextDrawSetString(Waiting4, birles);
new string[156];
format(string, sizeof string, "MAP: ~w~~h~%s", trcar(buf));
TextDrawSetString(MapText, string);
format(ServerData[mapXML],156,"%s",buf);
xml_close(xml);
}
SetTimer("OpenMapPlease", 5*1000,false);
mapAcildi = false;
if(dini_Exists(topla))
{
format(topla,166,"DMRace/%s/toptimes.txt",ServerData[startMap]);
dini_Create(topla);
dini_IntSet(topla, "Recorder_1", 0);
dini_IntSet(topla, "Recorder_1_Date", 0);
dini_IntSet(topla, "Recorder_2", 0);
dini_IntSet(topla, "Recorder_2_Date", 0);
dini_IntSet(topla, "Recorder_3", 0);
dini_IntSet(topla, "Recorder_3_Date", 0);
dini_IntSet(topla, "Recorder_4", 0);
dini_IntSet(topla, "Recorder_4_Date", 0);
dini_IntSet(topla, "Recorder_5", 0);
dini_IntSet(topla, "Recorder_5_Date", 0);
dini_IntSet(topla, "Recorder_6", 0);
dini_IntSet(topla, "Recorder_6_Date", 0);
dini_IntSet(topla, "Recorder_7", 0);
dini_IntSet(topla, "Recorder_7_Date", 0);
dini_IntSet(topla, "Recorder_8", 0);
dini_IntSet(topla, "Recorder_8_Date", 0);
dini_IntSet(topla, "Recorder_9", 0);
dini_IntSet(topla, "Recorder_9_Date", 0);
dini_IntSet(topla, "Recorder_10", 0);
dini_IntSet(topla, "Recorder_10_Date", 0);
dini_Set(topla, "Recorder_1_Name", "<N/A>");
dini_Set(topla, "Recorder_2_Name", "<N/A>"); [190]
dini_Set(topla, "Recorder_3_Name", "<N/A>");
dini_Set(topla, "Recorder_4_Name", "<N/A>");
dini_Set(topla, "Recorder_5_Name", "<N/A>");
dini_Set(topla, "Recorder_6_Name", "<N/A>");
dini_Set(topla, "Recorder_7_Name", "<N/A>"); [195]
dini_Set(topla, "Recorder_8_Name", "<N/A>");
dini_Set(topla, "Recorder_9_Name", "<N/A>");
dini_Set(topla, "Recorder_10_Name", "<N/A>");
}
return true; [200]
}

forward OpenMapPlease();public OpenMapPlease(){
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
SetPlayerPos(i, mapValues[pMX],mapValues[pMY],mapValues[pMZ]+3);
TogglePlayerControllable(i, false);
SetTimerEx("playerData_HideTT", 15 * 1000, false, "i", i);
UpdateTT(i);
}}
StartMap(ServerData[startMap]);
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
TextDrawHideForPlayer(i, Waiting0);
TextDrawHideForPlayer(i, Waiting1);
TextDrawHideForPlayer(i, Waiting2);
TextDrawHideForPlayer(i, Waiting3);
TextDrawHideForPlayer(i, Waiting4); [218]
TextDrawHideForPlayer(i, Waiting5);}}
return true;
}

CMDtart(playerid, params[]){
new mapN[156];
format(mapN,156,"DMRace/%s/objects.map",params);
format(mapN3,156,"DMRace/%s/meta.xml",params); [226]
if(PlayerData[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_MTA, "You are not admin!");
else if(isnull(params)) return SendClientMessage(playerid, COLOR_SYNTAX, "Usage: /start <map name>");
else if(!dini_Exists(mapN)) return SendClientMessage(playerid, COLOR_MTA, "Bцyle bir map yok!");
else {
TextDrawSetString(Waiting3, "MAP: ~w~~h~LOADING..");
TextDrawSetString(Waiting4, "AUTHOR: ~w~~h~LOADING..");
mapAcildi = true;
if(progressMap == true) return 0;
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(Spectekiler[i] == 1){ StopSpectate(i); }
}}
KillTimer(UMapTimer);
ServerData[Started] = false;
progressMap = true;
ProgressForMap();
format(ServerData[startMap],56,"%s",params);
format(mapN,sizeof mapN, "Map '%s' is started by admin %s!", params, PlayerName(playerid));
SendClientMessageToAll(COLOR_MTA, mapN);
}
return true;
}

forward StartMap(mapName[]);public StartMap(mapName[]){
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
SetPlayerPos(i, mapValues[pMX],mapValues[pMY],mapValues[pMZ]+3);
TogglePlayerControllable(i, false);
}}
new string[156], mapN[256],mapN_4[156];
format(mapN,256,"DMRace/%s/objects.map",mapName);
if(LoadMap(mapN))
{
format(mapN2,156,"DMRace/%s/toptimes.txt",mapName);
format(string,256,"Map '%s' loaded and starting!",mapName);
SendClientMessageToAll(COLOR_MTA, string);
format(ServerData[Mapname],156,"%s",mapName);
StartRace(5000);
format(mapN_4,156,"DMRace/%s/meta.xml",mapName);
new XMLml = xml_open(mapN_4);
if (xml)
{
new buf[100];
xml_get_string(xml, "meta/info", buf);
xml_get_string(xml, "meta/info/@name", buf);
format(string, sizeof string, "MAP: ~w~~h~%s", trcar(buf));
TextDrawSetString(MapText, string);
format(ServerData[mapXML],156,"%s",buf);
xml_close(xml);
}
}
return true;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerExitVehicle(playerid){
if(GetServerCount() > 1)
{
SetPVarInt(playerid, "Geberdi", 1);
StartSpectate(playerid, GetRandomPlayer(playerid));
} else
if(GetServerCount() == 1)
{
ProgressForMap();
}
return true;
}

public OnPlayerDeath(playerid, killerid, reason){
if(GetServerCount() > 1)
{
SetPVarInt(playerid, "Geberdi", 1);
StartSpectate(playerid, GetRandomPlayer(playerid)); [303]
} else
Reply
#6

Ctrl + F and then search [Error code] like [303], Please help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)