Hey
ich hatte nach einem Tutorial ein Teamdeathmatch Skript gebastelt nun habe ich 2 fehler die ich einfach nicht gelöst bekomme ...
hier mal das Skript
Code
#include
new gang[MAX_PLAYERS];
new teamkills[MAX_PLAYERS];
#if defined FILTERSCRIPT
#if defined gang
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" LSDM");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" LSDM");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
UsePlayerPedAnims();
AddPlayerClass(105,2511.2092,-1688.0992,13.5621,44.2817,24,60,26,100,18,8); // grove1
AddPlayerClass(106,2512.6931,-1672.5791,13.5036,66.8167,6,1,31,400,22,80); // grove2
AddPlayerClass(107,2517.3416,-1661.4232,14.2167,100.0303,32,550,23,50,4,1); // grove3
AddPlayerClass(102,1910.1559,-1123.0077,25.5906,183.7904,24,60,26,100,18,8); // ballas1
AddPlayerClass(103,1939.0726,-1114.7036,27.4523,178.7263,6,1,31,400,22,80); // ballas2
AddPlayerClass(104,2002.9470,-1115.9773,27.1250,181.3781,32,550,23,50,4,1); // ballas3
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if (classid == 0) //grove1
{
SetPlayerPos(playerid, 2511.2092,-1688.0992,13.5621);
SetPlayerFacingAngle(playerid,44.2817);
SetPlayerCameraPos(playerid, 2508.6785,-1685.8330,13.5628);
SetPlayerCameraLookAt(playerid, 2511.2092,-1688.0992,13.5621);
gang[playerid] = 1;
}
if (classid == 1)//grove2
{
SetPlayerPos(playerid, 2518.0532,-1677.3661,14.3649);
SetPlayerFacingAngle(playerid,48.3784);
SetPlayerCameraPos(playerid, 2515.3792,-1674.7891,13.7942);
SetPlayerCameraLookAt(playerid, 2518.0532,-1677.3661,14.3649);
gang[playerid] = 1;
}
if (classid == 2)//grove3
{
SetPlayerPos(playerid, 2518.9741,-1661.5500,14.3701);
SetPlayerFacingAngle(playerid,95.8370);
SetPlayerCameraPos(playerid, 2516.1572,-1662.0303,14.0208);
SetPlayerCameraLookAt(playerid, 2518.9741,-1661.5500,14.3701);
gang[playerid] = 1;
}
if (classid == 3)//ballas4
{
SetPlayerPos(playerid, 1910.1559,-1123.0077,25.5906);
SetPlayerFacingAngle(playerid,183.7904);
SetPlayerCameraPos(playerid, 1910.4298,-1126.7048,24.7416);
SetPlayerCameraLookAt(playerid, 1910.1559,-1123.0077,25.5906);
gang[playerid] = 2;
}
if (classid == 4)//ballas5
{
SetPlayerPos(playerid, 1939.0726,-1114.7036,27.4523);
SetPlayerFacingAngle(playerid,178.7263);
SetPlayerCameraPos(playerid, 1938.8990,-1116.4243,26.9467);
SetPlayerCameraLookAt(playerid, 1939.0726,-1114.7036,27.4523);
gang[playerid] = 2;
}
if (classid == 5)//ballas6
{
SetPlayerPos(playerid, 2002.9470,-1115.9773,27.1250);
SetPlayerFacingAngle(playerid,181.3781);
SetPlayerCameraPos(playerid, 2002.8882,-1118.4071,26.7813);
SetPlayerCameraLookAt(playerid, 2002.9470,-1115.9773,27.1250);
gang[playerid] = 2;
}
return 1;
}
public OnPlayerConnect(playerid)
{
teamkills[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if (gang[playerid] == 1) { SetPlayerColor(playerid,0x33AA33AA); }
else if (gang[playerid] == 2) { SetPlayerColor(playerid,0x8B008BAA }
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if (gang[playerid] == gang(killerid);
{
teamkills[killerid] = teamkills[killerid] + 1;
if (teamkills[killerid] > 4)
{
Kick(killerid);
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
#endif
</a_samp>
Alles anzeigen
</a_samp>
C:\Dokumente und Einstellungen\Markus\Desktop\Programme\server\gamemodes\LSDM.pwn(293) : warning 203: symbol is never used: "gang"
C:\Dokumente und Einstellungen\Markus\Desktop\Programme\server\gamemodes\LSDM.pwn(293) : warning 203: symbol is never used: "teamkills"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
das solln die Fehler sein ich versteh das einfach nicht.
hoffendlich bekomm ich hilfe
mfg