Just one Error ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Just one Error ! (
/showthread.php?tid=475094)
Just one Error ! -
ZKaiii - 11.11.2013
My gamemode has 1 bug but I can't fix it so plz help me
![Cheesy](images/smilies/biggrin.png)
!!
Sceenshot :
This is a bug's code
Код:
if(GetPVarInt(i, "EMSAttempt") == 3)
{
if(IsPlayerInAnyVehicle(i))
{
new ambmodel = GetPlayervID(i);
if(IsAnAmbulance(ambmodel))
{
GameTextForPlayer(i, "~g~Giup voiii~n~~w~Cho doi EMS mang den Benh Vien...", 5000, 3);
}
else
{
SendClientMessage(i, COLOR_WHITE, "You fell unconscious due to no life support, you were immediately sent to the hospital.");
KillEMSQueue(i);
SpawnPlayer(i);
}
}
else
{
SendClientMessage(i, COLOR_WHITE, "Ban da bi roi ra khoi xe, ngay lap tuc ban duoc dua den benh vien.");
KillEMSQueue(i);
SpawnPlayer(i);
}
}
Re: Just one Error ! -
ZKaiii - 11.11.2013
UP !!! plzzz , someboddy help me !!~~
Re: Just one Error ! -
HardRock - 11.11.2013
PHP код:
new ambmodel = GetPlayervID(i);
To
PHP код:
new ambmodel = GetPlayerVehicleID(i);
Re: Just one Error ! -
ZKaiii - 11.11.2013
tks u so much ! I've waited 30 minutes ago ~~