I don't know how to explain this [Picture included] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I don't know how to explain this [Picture included] (
/showthread.php?tid=130643)
I don't know how to explain this [Picture included] -
Andy_McKinley - 27.02.2010
I scripted 4 teams, and this happend with all the 4 teams. This doesn't happen because of my game, because I don't mod much and my internet connection is alrighty. The spawnpoints are good because when I type /kill it suddenly works perfect. Could someone explain why this happens and how I can fix this?
(This is at SF Carrier ).
Re: I don't know how to explain this [Picture included] -
Torran - 27.02.2010
Add this to OnPlayerSpawn
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Then try
Re: I don't know how to explain this [Picture included] -
Andy_McKinley - 27.02.2010
Quote:
Originally Posted by Torran
Add this to OnPlayerSpawn
pawn Код:
SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
Then try
|
Pawno crashes when I add it.
It looks like this
pawn Код:
public OnPlayerSpawn(playerid)
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
{
if(Killed[playerid] != -1)
{
TextDrawShowForPlayer (playerid, Textdraw0);
TogglePlayerSpectating(playerid, true);
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
if(Killed[playerid] != INVALID_PLAYER_ID)
{
This is not everything of that part of script.
Re: I don't know how to explain this [Picture included] -
Torran - 27.02.2010
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
if(Killed[playerid] != -1)
{
TextDrawShowForPlayer (playerid, Textdraw0);
TogglePlayerSpectating(playerid, true);
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
if(Killed[playerid] != INVALID_PLAYER_ID)
{
Re: I don't know how to explain this [Picture included] -
Andy_McKinley - 27.02.2010
Now it works (I must've done something wrong). And it works in-game, thank you!