Tutorial bugs [stuck] -
Stanford - 05.02.2013
Ey guys I think that i have got a problem with the tutorial in the gamemode that I purchased, seriously I need some help, I think that the timer of the tutorial is bugged or something, I'm going to post here some codes if this helps here are they:
Код:
if(TutTime[i] >= 1) //THE TUTORIAL, /readrules
{
TutTime[i] += 1;
switch(TutTime[i])
{
case 3:
{
SendClientMessage(i, COLOR_YELLOW2, "|____ Server Rules ____|");
SendClientMessage(i, COLOR_YELLOW2, "READ THESE RULES. NOT OBEYING THEM WILL GET YOU BANNED.");
SendClientMessage(i, COLOR_YELLOW2, "Ignorance is no excuse - all of the stuff in here you need to know.");
SendClientMessage(i, COLOR_RED, "If you break any of the rules outlined here, you will NOT be unbanned.");
}
case 14:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Deathmatching ____|");
}
case 16:
{
SendClientMessage(i, COLOR_YELLOW2, "This server is a RP server which stands for Role Playing.");
SendClientMessage(i, COLOR_YELLOW2, "Deathmatching, or DMing, is not allowed. Deathmatching means killing someone for no");
SendClientMessage(i, COLOR_YELLOW2, "reason, without any in-character justification. If you just want to fight, there are");
SendClientMessage(i, COLOR_YELLOW2, "other servers for that. Here, if you want to kill someone, you need to have a reason.");
SendClientMessage(i, COLOR_YELLOW2, "Violating this rule will get you kicked. Doing it over and over will get you banned.");
SendClientMessage(i, COLOR_YELLOW2, "Don't worry, though. There's plenty of reasons to kill people around here.");
SendClientMessage(i, COLOR_YELLOW2, "Pretending to RP a crazy person or a badass cop killa does not give you reason to Deathmatch anyone.");
}
case 30:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Don't Be Stupid ____|");
}
case 32:
{
SendClientMessage(i, COLOR_YELLOW2, "This server is for people ages 17 and up. How will we tell? If you talk like an idiot,");
SendClientMessage(i, COLOR_YELLOW2, "you are one, or you just act 12. Don't type like an idiot; try to put some effort into");
SendClientMessage(i, COLOR_YELLOW2, "things like grammar and spelling. HY GUZUER LTS GO TO MAT PNT, K? is not acceptable here.");
SendClientMessage(i, COLOR_YELLOW2, "And don't act like a retard either. You know what it is - don't do it. And if you");
SendClientMessage(i, COLOR_YELLOW2, "don't know you're acting like one then you'll probably get banned.");
}
case 50:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Cheating & Abusing ____|");
}
case 54:
{
SendClientMessage(i, COLOR_YELLOW2, "There is to be no cheating, hacking, exploiting, or any other stupid shit.");
SendClientMessage(i, COLOR_YELLOW2, "We're here to have fun, not to 'win' or get an unfair edge over the other players.");
SendClientMessage(i, COLOR_YELLOW2, "If you see someone cheating, please use /report to let us know, and we'll stop it.");
SendClientMessage(i, COLOR_YELLOW2, "Do not make a bunch of new characters and take their money. We will notice. It is");
SendClientMessage(i, COLOR_YELLOW2, "not cool.");
}
case 74:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Drivers Don't Shoot. ____|");
}
case 76:
{
SendClientMessage(i, COLOR_YELLOW2, "If you are driving ANY VEHICLE do not shoot. Shooting from the driver");
SendClientMessage(i, COLOR_YELLOW2, "seat gives you auto aim and increased rate of fire. It's broken and unfair");
SendClientMessage(i, COLOR_YELLOW2, "and it's also bannable.");
}
case 96:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Carparking/Bladekilling ____|");
}
case 98:
{
SendClientMessage(i, COLOR_YELLOW2, "Carparking is when you run someone over with your car and then park on top");
SendClientMessage(i, COLOR_YELLOW2, "of that person, causing them to lose health. If you do this at all, even if");
SendClientMessage(i, COLOR_YELLOW2, "the person does not die, you may be banned. Bladekilling is when you use the");
SendClientMessage(i, COLOR_YELLOW2, "blades of a chopper to kill people. This, along with crashing planes into people");
SendClientMessage(i, COLOR_YELLOW2, "is bannable.");
}
case 118:
{
SendClientMessage(i, COLOR_YELLOW, "|____ Gang Violence ____|");
}
case 120:
{
SendClientMessage(i, COLOR_YELLOW2, "There are gangs on this server and the activity on the server revolves around them.");
SendClientMessage(i, COLOR_YELLOW2, "You have the most fun when you're in an official gang or running around as a group");
SendClientMessage(i, COLOR_YELLOW2, "so try to hook up with one, it makes a huge difference. And if you're the victim of");
SendClientMessage(i, COLOR_YELLOW2, "gangs or crime in general, /call 911.");
}
case 140:
{
SendClientMessage(i, COLOR_YELLOW, "|___Chicken Running and Logging ____|");
}
case 142:
{
SendClientMessage(i, COLOR_YELLOW2, "Chicken running is using sprint and rapid movement [zig zagging, circling]");
SendClientMessage(i, COLOR_YELLOW2, "to exploit lag in order to avoid getting shot. Also in this category are things");
SendClientMessage(i, COLOR_YELLOW2, "like running in and out of interiors to avoid getting shot. Another important");
SendClientMessage(i, COLOR_YELLOW2, "rule is --do not log to avoid death or arrest--. Again, not RP and bannable.");
}
case 162:
{
SendClientMessage(i, COLOR_YELLOW, "|___Language & Advertising ____|");
}
case 164:
{
SendClientMessage(i, COLOR_YELLOW2, "We'd like you to use English in any chat. This is an english language server.");
SendClientMessage(i, COLOR_YELLOW2, "If you want to talk with someone in your own Language, use the /w or /sms commands");
SendClientMessage(i, COLOR_YELLOW2, "Do not advertise for other servers. It's retarded and you know it. Do not use the word 'Heat'");
SendClientMessage(i, COLOR_YELLOW2, "in /ad, everyone knows what it is and you will get fined for it. Try to come up with something creative");
}
case 184:
{
SendClientMessage(i, COLOR_YELLOW, "|____The End ____|");
}
case 186:
{
SendClientMessage(i, COLOR_YELLOW2, "Congrats for making it to the end.");
SendClientMessage(i, COLOR_YELLOW2, "If you need any further help use /n to ask any game related questions.");
SendClientMessage(i, COLOR_YELLOW2, "The tone of these rules is a bit harsh, but they aren't unreasonable.");
SendClientMessage(i, COLOR_YELLOW2, "To involve yourself in the community and for more info, check out the website");
SendClientMessage(i, COLOR_YELLOW2, "www.RDZgta.com");
}
case 196:
{
TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
TogglePlayerControllable(i, 1);
MedicBill[i] = 0;
SetPlayerSpawn(i);
SpawnPlayer(i);
}
}
}
Код:
if(PlayerInfo[playerid][pTut] == 1)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTRED, "You will now proceed to the Tutorial.");
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, (playerid + MAX_PLAYERS));
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerCameraPos(playerid, 1.519, 33.851, 1199.59);
SetPlayerCameraLookAt(playerid, 1.71875, 30.4062, 1200.34);
TutTime[playerid] = 0;
}
ps: its a GF edit.
Re: Tutorial bugs [stuck] -
Stanford - 05.02.2013
Any help will be appreciated with a reputation.
Re: Tutorial bugs [stuck] -
Misiur - 05.02.2013
Timer is bugged, because what happens/what doesn't happen?
Re: Tutorial bugs [stuck] -
Stanford - 05.02.2013
well when I register an account it says "You'll now proceed to the tutorial" and nothing happens.. the tutorial doesn't show up and i'll be stuck in the tutorial forever..
Re: Tutorial bugs [stuck] -
Misiur - 05.02.2013
Firstly - explain to me if PlayerInfo[i][pTut] = 1; means that player had already passed the tutorial, or if he requires tutorial. If it means that he requires tutorial, then:
In your first piece of code:
pawn Код:
//Find
PlayerInfo[i][pTut] = 1;
//Change to
PlayerInfo[i][pTut] = 0;
In your second piece of code:
pawn Код:
TutTime[playerid] = 0;
//Changes to
TutTime[playerid] = 1;
Re: Tutorial bugs [stuck] -
Stanford - 05.02.2013
still doesnt work HELP PLZ
Re: Tutorial bugs [stuck] -
Stanford - 07.02.2013
didn't work
Re: Tutorial bugs [stuck] -
Stanford - 07.02.2013
guys i really need some help here
Re: Tutorial bugs [stuck] -
Misiur - 07.02.2013
You didn't answer my question, so I can't provide you code. However I'll try to get your thinking on right tracks.
As you can see it will trigger only if TutTime for player is greater than or equal to 1.
pawn Код:
case 196:
{
TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
When the tutorial is completed, tuttime is set to 1, and pTut is as well set to 1. From now on I will assume that pTut means that player completed the tutorial
pawn Код:
if(PlayerInfo[playerid][pTut] == 1)
{
//(...)
SendClientMessage(playerid, COLOR_LIGHTRED, "You will now proceed to the Tutorial.");
//(...)
TutTime[playerid] = 0;
}
Now, as we know from first point if the TutTime is less than 0,
tutorial won't start at all.
Other thing is that I don't know where your code is placed. Is first piece in some timer? Where in the hell is the second piece placed?
Re: Tutorial bugs [stuck] -
Stanford - 08.02.2013
didn't work