A SMALL PROBLEM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A SMALL PROBLEM (
/showthread.php?tid=353476)
A SMALL PROBLEM -
God'Z War - 23.06.2012
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
Respuesta: A SMALL PROBLEM -
Chris1337 - 23.06.2012
pawn Код:
TogglePlayerControlable(playerid,0)
///Set a timer of 5 seconds
and TogglePlayerControlable(playerid,1)
Re: A SMALL PROBLEM -
zombieking - 23.06.2012
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.
Re: A SMALL PROBLEM -
God'Z War - 23.06.2012
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"
|
Re: A SMALL PROBLEM -
zombieking - 23.06.2012
Double L , xD I forgot that
Respuesta: Re: A SMALL PROBLEM -
Chris1337 - 23.06.2012
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)
Re: A SMALL PROBLEM -
zombieking - 23.06.2012
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?
Re: A SMALL PROBLEM -
God'Z War - 23.06.2012
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
Re: Respuesta: Re: A SMALL PROBLEM -
[NWA]Hannes - 23.06.2012
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.