A SMALL PROBLEM
#1

Hi guys,
i am using stunt server . when i am spawning before map loading i am falldown.when we spawn it should be stuck for 5 second then land. how i can script it.plz help
Reply
#2

pawn Код:
TogglePlayerControlable(playerid,0)
///Set a timer of 5 seconds

and TogglePlayerControlable(playerid,1)
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerControlable(playerid,0);
SetTimerEx("Unfreeze",5000,false,"d",playerid);
return 1;
}
Top of script & outside any callbacks:
pawn Код:
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControlable(playerid,1);
return 1;
}
It should work , untested though.
Reply
#4

I got 2 error

Quote:

C:\Users\hp\Desktop\3e server\gamemodes\[UG]Centre.pwn(11046) : error 017: undefined symbol "TogglePlayerControlable"
C:\Users\hp\Desktop\3e server\gamemodes\[UG]Centre.pwn(11137) : error 017: undefined symbol "TogglePlayerControlable"

Reply
#5

pawn Код:
TogglePlayerControllable
Double L , xD I forgot that
Reply
#6

Quote:
Originally Posted by zombieking
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerControlable(playerid,0);
SetTimerEx("Unfreeze",5000,false,"d",playerid);
return 1;
}
Top of script & outside any callbacks:
pawn Код:
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControlable(playerid,1);
return 1;
}
It should work , untested though.
Why are you using a ґdґ for playerid , it should be ґiґ


pawn Код:
TogglePlayerControlablle(playerid, 0)

//// its with two LL not just one

TogglePlayerControlablle(playerid, 1)
Reply
#7

Because I always use d for players , I use i for numbers which are not player ids.. anyways.. What is the big problem? it should work right?

I put 1 L because English isn't my native language and yeah and I said that above , before you even posted here ... so why posting that again?
Reply
#8

i have one more problem\
my vehicles also getting problem when map loading before vehicles spawning it was falldown in water before
plz help me
Reply
#9

Quote:
Originally Posted by axxelac
Посмотреть сообщение
Why are you using a ґdґ for playerid , it should be ґiґ]
"d" and "i" are both for integers, and both can be used for playerid's.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)