2 Questions
#1

Hi , i got 2 questions , First :

how to make a player free for 5 seconds once he enter ANY interior then he get Unfrozen



Second :


I am using a GF Edit - And i want to make that players don't get kicked if they have non-rp name


I Think this is the part which kick the player - But when i remove it , it Crashes my Pawno.

Код:
		    new sendername[MAX_PLAYER_NAME];
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new namestring = strfind(sendername, "_", true);
			if(namestring == -1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format.");
				Kick(playerid);
				return 1;
			}
			else
			{
Can someone help ?
Reply
#2

I didn't understand the first question and the second question belongs to the GodFather thread.
Reply
#3

Actually, just remove that line of code checking for the name? Or just remove the
pawn Код:
Kick(playerid);
crap and it will just flag them when they have a non-rp name.
Reply
#4

1.
pawn Код:
public Unfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("Unfreeze", 5000, false, "d", playerid);
    return 1;
}
2. Show more code
Reply
#5

pawn Код:
SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format.");
                Kick(playerid);
Remove the above.
Reply
#6

@MadeMan - I Added your Codes...And that happened:

Quote:

E:\X-Zone RPG\pawno\include\zones.inc(41 : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2043) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2082) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2255) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2266) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2271) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2296) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2442) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(2947) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(9352) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(11512) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(11515) : error 055: start of function body without function header
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(11517) : error 010: invalid function or declaration
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(11519) : error 010: invalid function or declaration
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(1152 : warning 235: public function lacks forward declaration (symbol "Unfreeze")
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(11546) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(1155 : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(13002) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(13929) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(14004) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(19734) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(24010) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(25507) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(26685) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(27234) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(30697) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(30715) : warning 217: loose indentation
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(39894) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(42311) : warning 219: local variable "x" shadows a variable at a preceding level
E:\X-ZONE~1\GAMEMO~1\xzrpg.pwn(42747) : warning 203: symbol is never used: "x"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

And... Linux - When i did that , he didn't get kicked but he wasn't processed to the Tutorial..
Reply
#7

Erhm, try mine yet, I wanna know if it actually works xD ...to broaden my scripting aspect or something similar to that bs
Reply
#8

it's the same like linux... you don't procced to the Tutorial - it just give you a screen of the Ocean and a bridge
Reply
#9

Have you tried A. deleting the entire thing or B. making sure it isn't calling anything at the tutorial?
Reply
#10

you mean ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)