SA-MP Forums Archive
Help me to get DONE - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me to get DONE (/showthread.php?tid=185975)



Help me to get DONE - marinov - 27.10.2010

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.


Re: OMG OMG PLZ HELP ME FAST - Kitten - 27.10.2010

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


Re: OMG OMG PLZ HELP ME FAST - marinov - 27.10.2010

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


Re: Help me to get DONE - Scenario - 27.10.2010

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.


Re: Help me to get DONE - marinov - 27.10.2010

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


Re: Help me to get DONE - marinov - 27.10.2010

help meeeeeee !


Re: Help me to get DONE - Scenario - 27.10.2010

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!?


Re: Help me to get DONE - marinov - 27.10.2010

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.


Respuesta: Help me to get DONE - admantis - 27.10.2010

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.


Re: Help me to get DONE - Scenario - 27.10.2010

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;
}