Little teleport problem
#1

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 ?
Reply
#2

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;
	}
Reply
#3

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

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

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 -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)