Car Surfing Script
#1

Ok, i don't see the error here. Was hoping you guys might know what's up with this

Код:
C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4253) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
	new string[256];
	new playername[MAX_PLAYER_NAME];
	new Float:x, Float:y, Float:z;
	GetPlayerName(playerid, playername, sizeof(playername));
	if(GetPlayerSurfingVehicleID(playerid) !=5);//Making sure they aren't surfing another vehicle.
	{
	    GetPlayerPos(playerid, x, y, z);
		format(string, sizeof(string), "* %s loses %s grip and falls off the vehicle.",PlayerName(playerid),HisHer(playerid));
		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		SetPlayerPos(playerid, x+3, y+3, z+1);
		PlayerPlaySound(playerid, 1130, 0.0, 0.0, 0.0);
	}
Reply
#2

Код:
if(GetPlayerSurfingVehicleID(playerid) !=5);//Making sure they aren't surfing another vehicle.
Remove the semi-colon there and it should work.
Reply
#3

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Код:
if(GetPlayerSurfingVehicleID(playerid) !=5);//Making sure they aren't surfing another vehicle.
Remove the semi-colon there and it should work.
Thanks, it worked =3
Reply
#4

You could make this code a lot better by adding a velocity check and only knocking the player off when a vehicle is going a certain speed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)