Post doch bitte mal den ganzen anfang von deinem Script bis zeile 103 xD
komm grad nicht weiter
- MnKn
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
C:\Users\Leroy\Desktop\Scripts\Airline of GTA.pwn(105) : error 017: undefined symbol "COLOR_GREEN"
C:\Users\Leroy\Desktop\Scripts\Airline of GTA.pwn(138) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Leroy\Desktop\Scripts\Airline of GTA.pwn(157) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")//---------------------------------------------------------
#include <a_samp>// Test Server Copyright by
static gTeam[MAX_PLAYERS];
#define TEAM_ZOMBIE 0
#if defined FILTERSCRIPT
//---------------------------------------------------------public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Test Server");
print("--------------------------------------\n");
return 1;
}//---------------------------------------------------------
public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n----------------------------------");
print(" Test Server by Leroy");
print("----------------------------------\n");
}#endif
//---------------------------------------------------------
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Test Server");
AddPlayerClass(61, 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)
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}//---------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}//---------------------------------------------------------
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
if(gTeam[playerid] == TEAM_ZOMBIE)//<< bei IF abfragen KEIN ;
{
SetPlayerColor(playerid,COLOR_GREEN);
}//klammer falsch gehabt
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)
-
OnPlayerPrivMsg und OnPlayerInfoChange kannst du ganz rauslöschen, gibts in 0.3 nicht mehr.
Für das anderer machst du oben #define COLOR_GREEN 0x33AA33AA
-
es geht danke^^