Moving gate...
#6

Quote:

C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(42) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(42) : warning 215: expression has no effect
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(42) : error 001: expected token: ";", but found ")"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(42) : error 029: invalid expression, assumed zero
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(42) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

And that is how i addd where i wrong?

Quote:

new object,bool:gateOpen;

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif


public OnGameModeInit()
{
//Text
SetGameModeText("TWD1.0");
//Running Style
UsePlayerPedAnims();
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//Бази
//Army Base
object = CreateObject(985,1545.1000000,-1627.6000000,14.1000000,0.0000000,0.0000000,90.000 0000);
SetTimer("OpenGateAuto",1000,1);
return 1;
}

forward OpenGateAuto();
public OpenGateAuto()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i))continue;
if(SpielerInfo[i][Fraction] != 1 || SpielerInfo[i][Fraction] != 2)continue;//fraction query; you can optimized this
if(gateOpen == true)break;
MoveObject(object, 1545.1000000, -1620.1000000, 14.1000000, 1.0);
gateOpen = true;
SetTimer("CloseGateAuto",1000,1);
}
return 1;
}

//callback #2:
forward CloseGateAuto();
public CloseGateAuto()
{
MoveObject(object, 1545.1000000,-1627.6000000,14.1000000, 1.0);
gateOpen = false;
return 1;
}

Reply


Messages In This Thread
Moving gate... - by Bulgaria - 29.03.2016, 08:03
Re: Moving gate... - by Logic_ - 29.03.2016, 08:37
Re: Moving gate... - by saffierr - 29.03.2016, 08:41
Re: Moving gate... - by Bulgaria - 29.03.2016, 20:19
Re: Moving gate... - by Mencent - 29.03.2016, 20:28
Re: Moving gate... - by Bulgaria - 30.03.2016, 06:45
Re: Moving gate... - by Mencent - 30.03.2016, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)