Why its doesn't work ? :O
#1

Quote:

Public OnPlayerExitVehicle(playerid, vehicleid)
{


Quote:

if(PizzaMissionStarted == 1 && InPizzaMission[playerid] == 1)
{
for(new i=1; i < MAX_VEHICLES; i++)
{
InPizzaMission[playerid] = 0;
PizzaMissionStarted = 0;
DestroyVehicle(PizzaBoy[i]);
SetPlayerVirtualWorld(playerid, 0);
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRandomSpawn(playerid);
SendClientMessage(playerid,COLOR_ORANGE,"!йцаъ одшлб ерфсмъ баъвш");
KillTimer(PizzaMission2[playerid]);
format(String,sizeof(String),"!рлщм бощйоъ дфйцд %s дщзчп",GetName(playerid));
SendClientMessageToAll(COLOR_KRED,String);
}

No affect... Supposed to destroy PizzaBoy[I] Bike but it doesn't :O... tbh nothing happen. no spawn or ClientMessage just can't get affect from this code. maybe you guys figure out.

Thanks alot !
Reply
#2

Can someone helps me please ?
Reply
#3

for (new i = 0; i <MAX_VEHICLES; i ++)
Reply
#4

Quote:
Originally Posted by shourya
Посмотреть сообщение
for (new i = 0; i <MAX_VEHICLES; i ++)
no. vehicles id start from 1

ur code should be something like this: (if the array PizzaBoy has playerid) (recomanded)

PHP код:
if(PizzaMissionStarted == && InPizzaMission[playerid] == 1)
{
InPizzaMission[playerid] = 0;
PizzaMissionStarted 0;
DestroyVehicle(PizzaBoy[playerid]);
SetPlayerVirtualWorld(playerid0);
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRandomSpawn(playerid);
SendClientMessage(playerid,COLOR_ORANGE,"!йцаъ одшлб ерфсмъ баъвш");
KillTimer(PizzaMission2[playerid]);
format(String,sizeof(String),"!рлщм бощйоъ дфйцд %s дщзчп",GetName(playerid));
SendClientMessageToAll(COLOR_KRED,String);

or like this if the array is depending on vehicleid:


PHP код:
if(PizzaMissionStarted == && InPizzaMission[playerid] == 1)
{
for(new 
1MAX_VEHICLESi++){
if(
PizzaBoy[i] != playerid) continue;
InPizzaMission[playerid] = 0;
PizzaMissionStarted 0;
DestroyVehicle(PizzaBoy[i]);
SetPlayerVirtualWorld(playerid0);
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRandomSpawn(playerid);
SendClientMessage(playerid,COLOR_ORANGE,"!йцаъ одшлб ерфсмъ баъвш");
KillTimer(PizzaMission2[playerid]);
format(String,sizeof(String),"!рлщм бощйоъ дфйцд %s дщзчп",GetName(playerid));
SendClientMessageToAll(COLOR_KRED,String);
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)