20.04.2010, 18:39
Before SetPlayerPos: new Float,Float:y,Float:z;
like
like
pawn Код:
case 5:
{
if(GetPlayerMoney(playerid) < 40000)
return SendClientMessage(playerid,COLOR_RED,"--> You don't have $40000!") && SetPlayerPos(playerid,-1979.8074,270.1521,35.1719) && TogglePlayerControllable(playerid,1);
GivePlayerMoney(playerid,-40000);
SetPlayerPos(playerid,-1979.8074,270.1521,35.1719);
new Float:x,Float:y,Float:z; //That line. Else x,y,z are seen as values of zero (0)
GetPlayerPos(playerid,x,y,z);
PlayerPlaySound(playerid,1058,0,0,0);
TogglePlayerControllable(playerid,1);
CreateVehicle(402,x+2,y+2,z+2,0,0,0,0);
return SendClientMessage(playerid, COLOR_YELLOW, "--> You bought a Buffalo!");
}