Ich habe ein teamkill scripht erstelt erhalte aber immer 1 error und eine warnung:
#include <a_samp>
#define FARBE_ROT 0xAA3333AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" CS Mod by Henning");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" CS Mod by Henning");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Player Klassen
SetGameModeText("CS Mod");
AddPlayerClass(285,2776.2981,-2379.0464,16.2244,88.4118,16,3,4,1,22,22); // CT
AddPlayerClass(258,2536.9382,-2535.7244,13.6250,268.8935,16,3,4,1,22,22); // T
//Fahrzeuge
AddStaticVehicle(601,2777.9729,-2433.9578,13.3965,90.1596,1,1); // swat1
AddStaticVehicle(601,2778.0356,-2440.1118,13.3948,89.0403,1,1); // swat2
AddStaticVehicle(528,2758.8315,-2375.5103,13.6769,178.3527,0,0); // FBI
AddStaticVehicle(497,2774.9885,-2390.8638,19.0606,180.1215,0,1); // PHeli
AddStaticVehicle(489,2461.5103,-2603.9871,13.8049,268.1043,14,123); // truck 1
AddStaticVehicle(489,2461.1106,-2609.5408,13.8053,269.1462,120,123); // truck 2
AddStaticVehicle(489,2461.2163,-2614.3079,13.8056,269.2205,120,123); // truck 3
AddStaticVehicle(489,2460.8347,-2619.9602,13.8066,268.4834,14,123); // truck 4
AddStaticVehicle(469,2509.0422,-2629.3987,14.2617,0.0056,1,3); // sparrow
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
SetPlayerPos(playerid, 2715.2871,-2486.3831,29.1932);
SetPlayerCameraPos(playerid, 2715.2393,-2492.1199,29.1932);
SetPlayerCameraLookAt(playerid, 2715.2871,-2486.3831,29.1932);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 25);
SetPlayerArmour(playerid, 25);
SetPlayerTeam(playerid, 2);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if GetPlayerSkin(killerid) == SetPlayerSkin(playerid)
{
SendClientMessage(killerid, FARBE_ROT, "Das war Teamkill und du musst 1000$ Zahlen!");
GivePlayerMoney(killerid, -1000);
SendClientMessage(playerid, FARBE_ROT, "Weil du von einen Teammidglied getötet wurdest bekommst du 1000$!");
GivePlayerMoney(playerid, 1000);
}
else
{
SendClientMessage(killerid, FARBE_ROT, "Gut gemacht du bekommst 1000$!");
GivePlayerMoney(killerid, 1000);
SendClientMessage(playerid, FARBE_ROT, "Ich glaube tu bist Tod!");
}
return 1;
}
C:\Dokumente und Einstellungen\Henning\Desktop\CSMod.pwn(70) : warning 202: number of arguments does not match definition
C:\Dokumente und Einstellungen\Henning\Desktop\CSMod.pwn(71) : error 001: expected token: "*then", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.