Ok danke, hab verstanden wie du es meinst, aber weiß nicht wie ich es einfüge
*edit
bei mir siehts so aus:
geh nach ganz unten von diesem pwn quelltext
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1183.6459,-2037.3604,69.0078);
SetPlayerCameraPos(playerid, 1187.9432,-2036.6163,69.0078);
SetPlayerCameraLookAt(playerid, 1183.6459,-2037.3604,69.0078);
new string[128];
if (classid == 0)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 1)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 2)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 3)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 4)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 5)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 6)
{
format(string, sizeof(string), "~g~>> Grove Street <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 7)
{
format(string, sizeof(string), "~p~>> Ballas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 8)
{
format(string, sizeof(string), "~p~>> Ballas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 9)
{
format(string, sizeof(string), "~p~>> Ballas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 10)
{
format(string, sizeof(string), "~b~>> Varrios Los Aztecas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 11)
{
format(string, sizeof(string), "~b~>> Varrios Los Aztecas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 12)
{
format(string, sizeof(string), "~b~>> Varrios Los Aztecas <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 13)
{
format(string, sizeof(string), "~y~>> Los Santos Vagos <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 14)
{
format(string, sizeof(string), "~y~>> Los Santos Vagos <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 15)
{
format(string, sizeof(string), "~y~>> Los Santos Vagos <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 16)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 17)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 18)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 19)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 20)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 21)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 22)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 23)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if (classid == 24)
{
format(string, sizeof(string), "~b~>> Regierung <<");
GameTextForPlayer(playerid,string,3500,6);
}
if(classid => 0 && classid <= 6)
{
SpielerTeam[playerid] = 1; // Team 1 z.b.
}
return 1;
}
dann kommt das:
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(2803) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : warning 211: possibly unintended assignment
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : error 029: invalid expression, assumed zero
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : warning 215: expression has no effect
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : error 001: expected token: ";", but found ")"
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : error 029: invalid expression, assumed zero
C:\DOKUME~1\ADMINI~1\Desktop\SCRIPT~1\FILTER~1\GANGFI~1.PWN(3224) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.