Ich versuche immoment ihrgentwie en Stunt mod zu machen (zum üben) nur iwie hab ich ka...
ALso er zeigt bei mir errors an und ich hab keine Ahnung was er will:
C:\Dokumente und Einstellungen\XXX\Desktop\Untitled.pwn(33) : error 021: symbol already defined: "print"
C:\Dokumente und Einstellungen\XXX\Desktop\Untitled.pwn(86) : warning 225: unreachable code
C:\Dokumente und Einstellungen\XXX\Desktop\Untitled.pwn(161) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\XXX\Desktop\Untitled.pwn(163) : error 010: invalid function or declaration
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//Farben
#define FARBE_GRAU 0xAFAFAFAA
#define FARBE_GRÜN 0x33AA33AA
#define FARBE_ROT 0xAA3333AA
#define FARBE_GELB 0xFFFF00AA
#define FARBE_PINK 0xFF66FFAA
#define FARBE_BLAU 0x0000BBAA
#define FARBE_HELLBLAU 0x33CCFFAA
#define FARBE_DUNKELROT 0x660000AA
#define FARBE_ORANGE 0xFF9900AA
#define FARBE_SCHWARZ 0x000000FF
print ("\n----------------------------------");
print (" Stunt Game Mod by Keleg_Kelso ");
print ("----------------------------------\n");
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Stunt Script");
ShowNameTags(1);
ShowPlayerMarkers(1);
SetWorldTime(18);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"Stunt",2500,5);
GivePlayerMoney(playerid, 10000000);
SetPlayerColor(playerid, FARBE_GRAU); // Set the player's color to inactive
return 1;
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server Betreten.", pName);
SendClientMessageToAll(0x00A200FF, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
}
SendClientMessageToAll(0x00A200FF, string);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
(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 OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
Und wie #define ichen ihrgentwas z.b.
[MAX_PLAYER_NAME];
(Farben kann ich schon definen)