Something is wrong with my script!! - 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: Something is wrong with my script!! (
/showthread.php?tid=145465)
Something is wrong with my script!! -
Chilliad - 02.05.2010
I have a Problem with my server or script.
When im in Pawno, i make a command (tele command) add the SetPlayerPos and stuff, Save then Complie, no errors, THEN when i add it in the server, i start up the server, join it. But when i type the Command, Nothing HappendS!!!!
Please Help!!
Tele command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/superjump",cmdtext,true))
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1794.0,1828.0,668.0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
}
else
{
SetPlayerPos(playerid,1794.0,1828.0,668.0);
SetPlayerFacingAngle(playerid,0.0);
}
return 1;
}
return 0;
}
It's the Superjump From XRVX
Re: Something is wrong with my script!! -
Assyria - 02.05.2010
Show your teleport command
Re: Something is wrong with my script!! -
Chilliad - 02.05.2010
i added it!
Please help!
Re: Something is wrong with my script!! -
ViruZZzZ_ChiLLL - 02.05.2010
Quote:
Originally Posted by Chilliad
i added it!
Please help!
|
There's nothing wrong with that
maybe you forgot to #include <a_samp>
________
ROLLING A JOINT
Re: Something is wrong with my script!! -
Chilliad - 02.05.2010
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by Chilliad
i added it!
Please help!
|
There's nothing wrong with that
maybe you forgot to #include <a_samp>
|
Nope #include <a_samp> it's there
Re: Something is wrong with my script!! -
Assyria - 02.05.2010
Are you sure you have the script loaded?
Re: Something is wrong with my script!! -
Chilliad - 02.05.2010
Quote:
Originally Posted by Assyria
Are you sure you have the script loaded?
|
Yes.....why would i post this topic if i wasn't loaded?
Re: Something is wrong with my script!! -
ViruZZzZ_ChiLLL - 02.05.2010
Quote:
Originally Posted by Chilliad
Quote:
Originally Posted by Assyria
Are you sure you have the script loaded?
|
Yes.....why would i post this topic if i wasn't loaded?
|
Dude, I'm really sure that when I compile that code it doesn't give me error
anyways try this
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/superjump",cmdtext,true))
{
SetPlayerPos(playerid,1794.0,1828.0,668.0);
return 1;
}
return 0;
}
________
Buy Easy Vape Vaporizer
Re: Something is wrong with my script!! -
nakashor - 02.05.2010
Quote:
Originally Posted by Chilliad
Quote:
Originally Posted by Assyria
Are you sure you have the script loaded?
|
Yes.....why would i post this topic if i wasn't loaded?
|
Do you have more commands in the script?
Re: Something is wrong with my script!! -
ViruZZzZ_ChiLLL - 02.05.2010
Quote:
Originally Posted by Teddy?
Quote:
Originally Posted by Chilliad
Quote:
Originally Posted by Assyria
Are you sure you have the script loaded?
|
Yes.....why would i post this topic if i wasn't loaded?
|
Do you have more commands in the script?
|
Yes, because there is nothing wrong with XRVX' command
________
Dodge Copperhead Specifications