Ich sitze seit Tagen daran etwas zu basteln. ABER ES SCHEITERT IMMER
if(listitem == 0)
{
if(GetPlayerWantedLevel(playerid) < 0 )
{
SetPlayerWantedLevel(playerid,1);
SendClientMessage(playerid,Weiss,"Du bist Taxi-Fahrer,spawn dir ein Taxi und fahre zum Checkpoint[Es gibt 3 Level]");
}
else
{
if(GetPlayerWantedLevel(playerid) < 1 )
{
if(GetPlayerWantedLevel(playerid) < 2 )
{
GameTextForPlayer(playerid,"Level 3",5000,6);
SetPlayerCheckpoint(playerid,TaxiJob3,5.0);
}
else
{
GameTextForPlayer(playerid,"Level 2",5000,6);
SetPlayerCheckpoint(playerid,TaxiJob2,5.0);
}
}
else
{
GameTextForPlayer(playerid,"Level 1",5000,6);
SetPlayerCheckpoint(playerid,TaxiJob1,5.0);
}
}
}
Funktionierte nicht
if(dialogid == Dialog_Job)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerWantedLevel(playerid) > 1 )
{
SetPlayerWantedLevel(playerid,1);
GameTextForPlayer(playerid,"Level 1",5000,6);
SetPlayerCheckpoint(playerid,TaxiJob1,5.0);
}
else
{
if(GetPlayerWantedLevel(playerid) < 1 )
{
if(GetPlayerWantedLevel(playerid) > 3 )
{
SetPlayerWantedLevel(playerid,2);
GameTextForPlayer(playerid,"Level 2",5000,6);
SetPlayerCheckpoint(playerid,TaxiJob2,5.0);
}
}
}
}
}
}
Funktioniert auch nicht
PAWNO ZEIGT KEINE FEHLER
Beim Ersten passiert (wenn ich /job ) eingebe "Level 3" ) und der dritte Checkpoint kommt aber wenn ich reinfahre passiert NICHTS.
Hier die Checkpoints:
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1))
{
DisablePlayerCheckpoint(playerid);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,TaxiJob1))
{
DisablePlayerCheckpoint(playerid);
SetPlayerWantedLevel(playerid,2);
GivePlayerMoney(playerid,500);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,TaxiJob2))
{
DisablePlayerCheckpoint(playerid);
SetPlayerWantedLevel(playerid,3);
GivePlayerMoney(playerid,1000);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,TaxiJob2))
{
DisablePlayerCheckpoint(playerid);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(playerid,1500);
}
return 1;
}
und hier der befehl:
if(strcmp("/job",cmdtext,true,10) == 0)
{
ShowPlayerDialog(playerid,Dialog_Job,DIALOG_STYLE_LIST,"Job Auswahl","Taxi-Fahrer","Nehmen!","Abbrechen");
return 1;
}
Bitte helft mir!