SA-MP Forums Archive
NEED HELP WITH TELEPORTS HELP PLZZZZZ - 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: NEED HELP WITH TELEPORTS HELP PLZZZZZ (/showthread.php?tid=73451)



NEED HELP WITH TELEPORTS HELP PLZZZZZ - _PDDRIFTER_ - 15.04.2009

if(!strcmp(cmdtext,"/chilliad",true))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh,-2401.9023,-1632.2725,521.2131);
SetVehicleZAngle(veh,260.0);
SetPlayerInterior(playerid,0);
return 1;
}
else
{
SetPlayerPos(playerid,-2401.9023,-1632.2725,521.2131);
SetPlayerFacingAngle(playerid,260.0);
return 1;
}
return 1;
}





i do this for a chiiliad teleport and this what i get



libary complier has stoped working HELP PLZZZZZz




Re: NEED HELP WITH TELEPORTS HELP PLZZZZZ - 56avenue - 15.04.2009

Код:
if(!strcmp(cmdtext,"/chilliad",true))
{
   if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   {
     new veh = GetPlayerVehicleID(playerid);
     SetVehiclePos(veh,-2401.9023,-1632.2725,521.2131);
     SetVehicleZAngle(veh,260.0);
     SetPlayerInterior(playerid,0);
   }
   else
   {
     SetPlayerPos(playerid,-2401.9023,-1632.2725,521.2131);
     SetPlayerFacingAngle(playerid,260.0);
   }
   return 1;
}



Re: NEED HELP WITH TELEPORTS HELP PLZZZZZ - _PDDRIFTER_ - 15.04.2009

C:\Users\zaynab account\Desktop\server\gamemodes\dm.pwn(483) : error 017: undefined symbol "cmdext"
C:\Users\zaynab account\Desktop\server\gamemodes\dm.pwn(500) : warning 209: function "OnPlayerExitedMenu" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

what should i do


Re: NEED HELP WITH TELEPORTS HELP PLZZZZZ - [DM]Kane - 16.04.2009

avoid the 'warning 209: function "OnPlayerExitedMenu" should return a value'

and for the error.. check the spelling of cmdtext, u have mis-typed it as cmdext.. correct it and see the Error msg dissapera