SA-MP Forums Archive
Little teleport 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little teleport problem (/showthread.php?tid=123215)



Little teleport problem - nastoe - 24.01.2010

Quote:

if(strcmp(cmdtext, "/naselje", true) == 0)
{
SetPlayerPos(playerid,1323.5603,1442.3839,10.3777) ;
return 1;
}

Quote:

C:\Users\NASTIE\Desktop\samp03asvr_R4_win32\gamemo des\LvParty.pwn(113) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\samp03asvr_R4_win32\gamemo des\LvParty.pwn(116) : error 010: invalid function or declaration

Can anyone help me please ?


Re: Little teleport problem - CrucixTM - 24.01.2010

Use mine. It works, just redo whatever yours is.

Код:
if (strcmp("/tp1", cmdtext, true, 10) == 0)
	{
		SetPlayerPos(playerid,1550.9790,-931.4260,43.8890);
		SendClientMessage(playerid, COLOR_YELLOW, "You Teleported");
		return 1;
	}



Re: Little teleport problem - Backwardsman97 - 24.01.2010

It's not the command, it's something above that. Probably a missing bracket.


Re: Little teleport problem - nastoe - 24.01.2010

i know can you add me on MSN please
kiki.dubrava@hotmail.com


Re: Little teleport problem - nastoe - 24.01.2010

i have this one JUST ONE
Quote:

if(strcmp(cmdtext, "/dm", true) == 0)
{
GivePlayerWeapon(playerid, 26, 500);
GivePlayerWeapon(playerid, 31, 500);
SendClientMessage(playerid,0xFFFF00AA,"Dobio si M4 i shootgun zato jer si napisao /DM, sretno u borbi!");
new cartype = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,1374.8513,1769.3303,10.8203) ;
}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,1374.8513,1769.3303,10.8203) ;
SetVehicleZAngle(cartype,30.6101);
}
else
{
SetPlayerPos(playerid,1374.8513,1769.3303,10.8203) ;
}
GameTextForPlayer(playerid,"dobro dosli u DM arenu",2500,3);
return 1;
}
return 0;
}

and evrythink is OK but when i copy paste above again that errors -.-