Hallo,
ich bastel momentan an einem Geldtransporter System rum. Leider bekommt der User kein Geld!
Schaut mal hier!!
public OnPlayerEnterCheckpoint(playerid)
{
if(CarRob[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,5.0,-1573.6975,127.5690,3.2554))
{
new robtext[128];
new rand = random(200000);
new veh = GetPlayerVehicleID(playerid);
GameTextForPlayer(playerid,"Raub gelungen!",5000,1);
format(robtext,sizeof(robtext),"Raub gelungen! Du raubst $%d.",rand);
SendClientMessage(playerid,COLOR_RED,robtext);
GivePlayerMoney(playerid,rand);
DisablePlayerCheckpoint(playerid);
CarRob[playerid]=0;
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(veh);
}
Was ist falsch ?
Gruß
XtraX