PDA

View Full Version : Bug random checkpoint


DarkZeroX
26/08/2012, 04:35 PM
My french no English :/


My checkpoint delete no respawn


new tmp = random(sizeof(Poub));
SetPlayerCheckpoint(playerid, Poub[tmp][0], Poub[tmp][1], Poub[tmp][2], 8.0);



Checkpoint the delete no respawn :/

DarkZeroX
26/08/2012, 04:41 PM
sorry ,


if(wWork[playerid][wStep] == 2 )
{
DisablePlayerCheckpoint(playerid);
eboueurNext(playerid);
new expwin, monwin;
expwin = 0;
new poubel = (1+random(2));
monwin = (2+random(7))* pWork[playerid][wRang];
workGiveSalaire( playerid, monwin);
wWork[playerid][wMarchandise] += poubel;
format(mono[playerid], 128, "Poubelle prise +%d$ +%d exp +%d poubelles.", monwin, expwin, poubel);
SendClientMessage(playerid,Couleur_Jaune,mono[playerid]);
workUpdateInterface(playerid);
new tmp = random(sizeof(Poub));
SetPlayerCheckpoint(playerid, Poub[tmp][0], Poub[tmp][1], Poub[tmp][2], 8.0);
return 1;
}