SWITCH problem?
#4

@Mencent Hey, you are from Germany like me

The server_log.txt result for this line its : pNivelPiloto: 0

Im supposing this mean i have any issue at my job ranks? wait this is pointed in Reparando and Reparando2 publics.

Variables
Quote:

pNivelPiloto,
pExpPiloto,

Top of Script
Quote:

forward Reparando2(playerid);
forward Reparando(vehicleid);

In My Own Publics Pool at bottom of Script
Quote:

public Reparando2(playerid)
{
LoopingAnim(playerid, "CARRY", "crry_prtial", 1.0, 0, 0, 0, 0, 0);
if(Player[playerid][pNivelPiloto] < 49)
{
if(Player[playerid][pVIPLevel] == 1)
{
new pago = random(3);
switch(pago)
{
case 0:
{
Player[playerid][pExpPiloto]++;
SendClientMessage(playerid,0x0080C2FF,"You have increased your experience with +1 skill point");
}
case 1:
{
Player[playerid][pExpPiloto]++;
SendClientMessage(playerid,0x0080C2FF,"You have increased your experience with +1 skill point");
}
case 2:
{
Player[playerid][pExpPiloto]+= 2;
SendClientMessage(playerid,0x0080C2FF,"You have increased your experience with +2 skill point");
}
}
}
else
{
Player[playerid][pExpPiloto]++;
SendClientMessage(playerid,0x0080C2FF,"You have increased your experience with +1 skill point");
}
}
else if(Player[playerid][pNivelPiloto] >= 49)
{
Player[playerid][pExpPiloto] = 0;
Player[playerid][pNivelPiloto]++;
SendClientMessage(playerid,-1,"Congratulations, you have increased your Mechanic Level");
}
}

public Reparando(vehicleid)
{
SetVehicleHealth(vehicleid, 1000.0);
}
Danke schon mal im voraus das du mir hilfst! Bin echt sehr dankbar!
Reply


Messages In This Thread
SWITCH problem? - by PrettyDiamond - 18.09.2016, 14:09
Re: SWITCH problem? - by PrettyDiamond - 28.09.2016, 16:13
Re: SWITCH problem? - by Mencent - 28.09.2016, 16:24
Re: SWITCH problem? - by PrettyDiamond - 29.09.2016, 07:06
Re: SWITCH problem? - by Mencent - 08.10.2016, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)