Hey,
ich habe es mir wie folgt gedacht ...
wenn ein Spieler in die ClassRequest kommt, soll für jede Gang (classid) ein anderer Textdraw erscheinen ...
Bei mir schaut das jetzt erstmal so aus:
new Text:Grovetextdraw;
new Text:Vagostextdraw;
new Text:Ballastextdraw;
new Text:Atzentextdraw;
new Text:Rifatextdraw;
OnPlayerSpawn:
TextDrawHideForPlayer(playerid, Grovetextdraw);
TextDrawHideForPlayer(playerid, Ballastextdraw);
TextDrawHideForPlayer(playerid, Vagostextdraw);
TextDrawHideForPlayer(playerid, Rifatextdraw);
TextDrawHideForPlayer(playerid, Atzentextdraw);
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0||classid == 1||classid == 2)
{
GameTextForPlayer(playerid,"~g~Grove",500,4);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2230.6328,1521.1443,45.6904);
SetPlayerFacingAngle(playerid,205.1720);
SetPlayerCameraPos(playerid,2219.9402,1499.6829,48.5419);
SetPlayerCameraLookAt(playerid,2230.6328,1521.1443,45.6904);
TextDrawShowForPlayer(playerid, Grovetextdraw[playerid]);
return 1;
}
...
OnGameModeInit:
Grovetextdraw = TextDrawCreate(473.000000, 363.000000, "~b~ ~b~ ~h~ Deagle Rifle Baseballschlaeger");
TextDrawBackgroundColor(Grovetextdraw, 255);
TextDrawFont(Grovetextdraw, 2);
TextDrawLetterSize(Grovetextdraw, 0.289999, 1.399999);
TextDrawColor(Grovetextdraw, 0x19FF00FF);
TextDrawSetOutline(Grovetextdraw, 0);
TextDrawSetProportional(Grovetextdraw, 1);
TextDrawSetShadow(Grovetextdraw, 1);
TextDrawUseBox(Grovetextdraw, 1);
TextDrawBoxColor(Grovetextdraw, 150);
TextDrawTextSize(Grovetextdraw, 639.000000, 0.000000);
So. Wo liegen jetzt die Fehler, mal ganz abgesehen von den Errors?!
/E: Code geupdatet.