[GameMode] Base Roleplay Script [BEGINNERS]
#41

Hey nice Script man!!!!!!!!!. But i got a quick question how to stop the server from restarting when I'm logging on to it?
Reply
#42

Quote:
Originally Posted by SoSuiCiDaL
Посмотреть сообщение
Hey nice Script man!!!!!!!!!. But i got a quick question how to stop the server from restarting when I'm logging on to it?
Hmm, well. I tested it out, downloaded it with a fresh start didn't edit anything in the script. When I log in, the server doesn't restart? I'm not sure. Have you edited anything in the script? Cause I don't have this error.

EDIT: Try downloading it new, fresh start. Don't edit the script and try again.
Reply
#43

Very nice, I am beginner an this gamemode is very helpful.
Reply
#44

Quote:
Originally Posted by fonetic
Посмотреть сообщение
Very nice, i'am beginer an this gamemode is very helpful.
Thanks!
Reply
#45

When i register and stuff, and say i log out when i log in if i use the right password it says its wrong, how to fixxx?
Reply
#46

Hey, I am a complete noob, but... upon looking at the script I noticed a little line that you may have left out.
Код:
public IsValidName(playerid)
{
    new pname[MAX_PLAYER_NAME],underline=0;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"[",true) != (-1)) return 0;
    else if(strfind(pname,".",true) != (-1)) return 0;
    else if(strfind(pname,"]",true) != (-1)) return 0;
    else if(strfind(pname,"$",true) != (-1)) return 0;
    else if(strfind(pname,"(",true) != (-1)) return 0;
    else if(strfind(pname,")",true) != (-1)) return 0;
    else if(strfind(pname,"=",true) != (-1)) return 0;
    else if(strfind(pname,"@",true) != (-1)) return 0;
    else if(strfind(pname,"1",true) != (-1)) return 0;
    else if(strfind(pname,"2",true) != (-1)) return 0;
    else if(strfind(pname,"3",true) != (-1)) return 0;
    else if(strfind(pname,"4",true) != (-1)) return 0;
    else if(strfind(pname,"5",true) != (-1)) return 0;
    else if(strfind(pname,"6",true) != (-1)) return 0;
    else if(strfind(pname,"7",true) != (-1)) return 0;
    else if(strfind(pname,"8",true) != (-1)) return 0;
    else if(strfind(pname,"9",true) != (-1)) return 0;
    new maxname = strlen(pname);
    for(new i=0; i<maxname; i++) { if(pname[i] == '_') underline ++; }
    if(underline != 1) return 0;
    pname[0] = toupper(pname[0]);
    for(new x=1; x<maxname; x++)
    {
        if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
         else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
    }
    return 1;
}
I believe you have left out
Код:
    else if(strfind(pname,"0",true) != (-1)) return 0;
which would enable people to have Harry0_Foster. But as I have said, I am a noob
Reply
#47

Quote:
Originally Posted by J4mmyHD
Посмотреть сообщение
When i register and stuff, and say i log out when i log in if i use the right password it says its wrong, how to fixxx?
Try to download the server fresh with no edits, and try it.

Quote:
Originally Posted by donsta3000
Посмотреть сообщение
Hey, I am a complete noob, but... upon looking at the script I noticed a little line that you may have left out.
Код:
public IsValidName(playerid)
{
    new pname[MAX_PLAYER_NAME],underline=0;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"[",true) != (-1)) return 0;
    else if(strfind(pname,".",true) != (-1)) return 0;
    else if(strfind(pname,"]",true) != (-1)) return 0;
    else if(strfind(pname,"$",true) != (-1)) return 0;
    else if(strfind(pname,"(",true) != (-1)) return 0;
    else if(strfind(pname,")",true) != (-1)) return 0;
    else if(strfind(pname,"=",true) != (-1)) return 0;
    else if(strfind(pname,"@",true) != (-1)) return 0;
    else if(strfind(pname,"1",true) != (-1)) return 0;
    else if(strfind(pname,"2",true) != (-1)) return 0;
    else if(strfind(pname,"3",true) != (-1)) return 0;
    else if(strfind(pname,"4",true) != (-1)) return 0;
    else if(strfind(pname,"5",true) != (-1)) return 0;
    else if(strfind(pname,"6",true) != (-1)) return 0;
    else if(strfind(pname,"7",true) != (-1)) return 0;
    else if(strfind(pname,"8",true) != (-1)) return 0;
    else if(strfind(pname,"9",true) != (-1)) return 0;
    new maxname = strlen(pname);
    for(new i=0; i<maxname; i++) { if(pname[i] == '_') underline ++; }
    if(underline != 1) return 0;
    pname[0] = toupper(pname[0]);
    for(new x=1; x<maxname; x++)
    {
        if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
         else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
    }
    return 1;
}
I believe you have left out
Код:
    else if(strfind(pname,"0",true) != (-1)) return 0;
which would enable people to have Harry0_Foster. But as I have said, I am a noob
Thanks for the notice.
Reply
#48

good job man
Reply
#49

Quote:
Originally Posted by tboysamp
Посмотреть сообщение
good job man
Thanks!
Reply
#50

I'm so using this for my new server, thanks man.
Reply
#51

Good Job.
Reply
#52


hello does anyone know what is the problem?
Reply
#53

Quote:
Originally Posted by Polarstern
Посмотреть сообщение

hello does anyone know what is the problem?
It shows you're running on 0.3x SAMP and the server's running on 0.3z, download SAMP 0.3z here.
Reply
#54

thank you but as you see the problem is still exists
i just copy your gamemode into my gamemode folder and then rename gamemode in server cfg file!
is there anything that i didnt do?
Reply
#55

does your server is online, and maybe you dont have rp name?
Reply
#56

nice
Reply
#57

THANX
Reply
#58

Nice, Good script for beginners
Reply
#59

Quote:
Originally Posted by MysteriousGaming
Посмотреть сообщение
nice
Quote:
Originally Posted by DhO0m
Посмотреть сообщение
THANX
Quote:
Originally Posted by LOCS
Посмотреть сообщение
Nice, Good script for beginners
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)