hi leute hoffe einer kann mir zu meinem problem was sagen bzw. mir den fehler nennen xD
also ich versuche mich mit scripten sei 3 wochen ca.
daher passiert viel mit copy paste noch und den sehr guten tuts hier im forum
nun hab ich aber ein problem mit dem swepper job
hab ihn richtig übertragen in ein anderes script
alles funktioniert nur der checkpoint nicht ?!?!
sprich:
wenn ich einsteige in den wagen
tippe ich den befehl /sweep ein
dann erscheint der erste checkpoint
wenn ich in angesteuert hab kommt der 2 checkpoint nicht zum vorschein
und der erste verschwindet auch nicht
hab ich was vergessen ? pls help
hier ein auszug
else if(IsASweeping[playerid]==0) //They've started the sweeping, init'd first checkpoint
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsASweeperCar(tmpcar))
{
if(IsASweeping[playerid]==1) // on second checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean.");
SetPlayerCheckpoint(playerid, 2267.7620,-2234.6172,13.1213,8.0); //set checkpoint 2
IsASweeping[playerid] = 2; // Set PlayerInfo[playerid][IsSweeping] in header with other global variables
}
else if(IsASweeping[playerid]==2) // on third checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean.");
SetPlayerCheckpoint(playerid, 2282.2163,-2081.0420,12.9457,8.0); //set checkpoint 3
IsASweeping[playerid] = 3; // Set PlayerInfo[playerid][IsSweeping] in header with other global variables
}
else if(IsASweeping[playerid]==3) // on fourth checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean.");
SetPlayerCheckpoint(playerid, 2218.5425,-1884.5298,12.9510,8.0); //set checkpoint 3
IsASweeping[playerid] = 4; // Set PlayerInfo[playerid][IsSweeping] in header with other
}
else if(IsASweeping[playerid]==4) // on fifth checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean.");
SetPlayerCheckpoint(playerid, 2645.4299,-1568.5497,17.3466,8.0); //set checkpoint 3
IsASweeping[playerid] = 5; // Set PlayerInfo[playerid][IsSweeping] in header with other
}
else if(IsASweeping[playerid]==5) // on sixth checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean");
SetPlayerCheckpoint(playerid, 2453.5874,-1384.0602,23.4621,8.0); //set checkpoint 3
IsASweeping[playerid] = 6; // Set PlayerInfo[playerid][IsSweeping] in header with other
}
else if(IsASweeping[playerid]==6) // on seventh checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Street clean.");
SetPlayerCheckpoint(playerid, 2144.3262,-1112.7115,24.9088,8.0); //set checkpoint 3
IsASweeping[playerid] = 7; // Set PlayerInfo[playerid][IsSweeping] in header with other
}
else if(IsASweeping[playerid]==7) // on eighth checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Streets Clean. Head back to the lot..");
SetPlayerCheckpoint(playerid, 2284.6736,-2301.7271,12.9504, 8.0); //set checkpoint 3
IsASweeping[playerid] = 8; // Set PlayerInfo[playerid][IsSweeping] in header with other
}
else if(IsASweeping[playerid]==8) // on third checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Well done! Here's your payment!");
IsASweeping[playerid] = 0; // they aren't sweeping anymore
GivePlayerMoney(playerid, 250);
}
}
}
if(strcmp(cmd, "/sweep", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 17)
{
SendClientMessage(playerid, COLOR_GREY, " You don't have the street sweeper job. ");
return 1;
}
new tmpcar = GetPlayerVehicleID(playerid);
if(IsASweeperCar(tmpcar))
{
if(PlayerInfo[playerid][pCarTime] == 0)
{
if(IsASweeping[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Go to the checkpoints and return for your pay.");
SetPlayerCheckpoint(playerid,2284.6736,-2301.7271,12.9504, 8.0);
IsASweeping[playerid] = 1; // Set IsSweeping in header with other global variables
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You are already sweeping!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "The street is clean! Wait a while before you try sweeping again!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You are not in a street sweeper. Get one behind the old DMV.");
return 1;
}
}
return 1;
}
wie gesagt ich lerne noch
also nicht böse sein
pls help
mfg