18.02.2009, 07:28
I am using Useful Functions include to use the OnPlayerGamble function. but i am getting the following errors.
heres the code im using.
Код:
C:\Program Files\Rockstar Games\GTA San Andreas (SAMP)\SAMP\pawno\include\uf.inc(4286) : error 033: array must be indexed (variable "betting") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
public OnPlayerGamble(playerid,type,bet,wl)
{
new PlayerInterior = GetPlayerInterior(playerid);
if (PlayerInterior == 12)
{
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1659.4200,2252.7900,11.0701);
TogglePlayerControllable(playerid,1);
}
else if (PlayerInterior == 1)
{
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2193.6484,1676.5054,12.3672);
TogglePlayerControllable(playerid,1);
}
else if (PlayerInterior == 10)
{
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2022.6898,1007.0966,10.8203);
TogglePlayerControllable(playerid,1);
}
}