Help me to get DONE
#1

I need to fix this error and then I will be DONE

http://pastebin.com/1EcB0wzq


C:\gamemodes\zombieoutbreak.pwn(974) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=45235
Do not post Subjects like OMG OMG PLZ HELP FAST
Reply
#3

Quote:
Originally Posted by Kitten
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=45235
Do not post Subjects like OMG OMG PLZ HELP FAST
edited thx
Reply
#4

Why do some people think they're problems are so much more important than everybody else?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        new string[128];
        format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
        {
        if(GetVehicleModel(GetPlayerVehicleID(playerid) == 487 && team[playerid] != 6);
        RemovePlayerFromVehicle(playerid); //Indent
        SendClientMessage(playerid, YELLOW, "Restricted to S.T.A.R.S. !!");
        }
        return 1;
}
Why don't you go back and look at the particular line you're having trouble with, then compare it with what I have above. You'll see how idiotic your mistake was.
Reply
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Why do some people think they're problems are so much more important than everybody else?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        new string[128];
        format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
        {
        if(GetVehicleModel(GetPlayerVehicleID(playerid) == 487 && team[playerid] != 6);
        RemovePlayerFromVehicle(playerid); //Indent
        SendClientMessage(playerid, YELLOW, "Restricted to S.T.A.R.S. !!");
        }
        return 1;
}
Why don't you go back and look at the particular line you're having trouble with, then compare it with what I have above. You'll see how idiotic your mistake was.
not really, first I NEVER said my is more important, and second, ur script has 2 errors
Reply
#6

help meeeeeee !
Reply
#7

Quote:
Originally Posted by marinov
Посмотреть сообщение
not really, first I NEVER said my is more important, and second, ur script has 2 errors
Then why don't you post the errors!?
Reply
#8

I thought i did, my bad

C:\gamemodes\zombieoutbreak.pwn(974) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#9

change your callback 'OnPlayerEnterVehicle' from this

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new string[128];
	format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
	{
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 487 && team[playerid] != 6);
	RemovePlayerFromVehicle(playerid); //Indent
	SendClientMessage(playerid, YELLOW, "Restricted to S.T.A.R.S. !!"); 
	} 
	return 1; 
}
to this

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new string[128];
	format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 487 && (team[playerid] !== 6)
	{
		RemovePlayerFromVehicle(playerid); //Indent
		SendClientMessage(playerid, YELLOW, "Restricted to S.T.A.R.S. !!");
	}
	return 1;
}
Make backup always its not tested... i also would suggest to use OnPlayerStateChange and not OnPlayerEnterVehicle

EDIT: I edited a code.. there was a missing character and it wouldn't work, try now.
Reply
#10

I see the problem, try this:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        new string[128];
        format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
        {
        if(GetVehicleModel(GetPlayerVehicleID(playerid) == 487 && team[playerid] != 6)
        {
             RemovePlayerFromVehicle(playerid); //Indent
             SendClientMessage(playerid, YELLOW, "Restricted to S.T.A.R.S. !!");
        }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)