enum pLevel
{
Level
};
new PlayerInfo[MAX_PLAYERS][pLevel];
if(CantLearnToCode == true)
{
PlayerInfo[playerid][Level] = 0;
Ban(playerid);
}
|
When trying to act cocky saying he needs to learn how to code, you should learn how to indent!
|
|
I know who you are. Next time when acting cocky try not make yourself look like an idiot :P
|
enum pInfo
{
Logged,
Money,
Float:X,
Float:Y,
Float:Z,
HasJob,
JobType,
HasBank,
AdminLevel,
Spawned,
PickupRef[50], //To remember a newly created pickup's info. Admins only!
KickRef, //To remember a kicked player. Admins only!
AdminRef, //To remember a new admin. Admins only!
Mute,
Login,
PlayerLoc, //Used to see if a player is in a Bank or Gun shop or wherever. Timer 'EnterExit' takes care of setting the values.
Tutorial,
BankPin,
PinRef, //When buying something and done entering your pin, what should happen next?
InCall,
CallTo,
VehRef,//When buying a vehicle to remember it's vehicleid for the dialogs.
Float:gHP, //Check to see who shot who.
IsShot
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[300];
switch(dialogid)
{
case 0:
{
if(response == 0)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
if(strlen(inputtext) <= 0)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
if(strlen(inputtext) >= 128)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
dini_Create(NameToFile(playerid));
dini_Set(NameToFile(playerid), "Pass", inputtext);
dini_IntSet(NameToFile(playerid), "HasJob", 0);
dini_IntSet(NameToFile(playerid), "JobType", -1);
dini_IntSet(NameToFile(playerid), "HasBank", 0);
dini_IntSet(NameToFile(playerid), "AdminLevel", 0);
LoginPlayer(playerid);
GiveMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_GREY, "Welcome to eRP. To start your new life off, you've been given a gift of $1000!");
SendClientMessage(playerid, COLOR_GREY, "You will be started on a quick tour to start off your new life. Have fun!");
TutorPlayer(playerid);
SetPlayerSkin(playerid, 26);
dini_IntSet(NameToFile(playerid), "Skin", 26);
} ...
|
Let's try not to go off topic now..
Anyway I'm in bed its 2am and I'm watching a movie. And p.s all I did was leave out a comma and a full stop. :P |
|
No, you said "try not make yourself". Its, "try not making yourself".
|