SA-MP Forums Archive
help - 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: help (/showthread.php?tid=85221)



help - Sin- - 06.07.2009

why don't work?

Код:
 	if(pickupid == pickups[0][svyturys]) //Svyturys
	  if(!strcmp(cmdtext, "/iseit", true))
		{
		  SetPlayerPos(playerid,154.3089,-1945.0850,4.4369);
			return 1;
		}
	}



Re: help - refshal - 06.07.2009

pawn Код:
if(!strcmp(cmdtext, "/iseit", true))
{
if(pickupid == pickups[0][svyturys]) //Svyturys
{
SetPlayerPos(playerid,154.3089,-1945.0850,4.4369);
return 1;
}
else return SetPlayerVirtualWorld(playerid,0);
}



Re: help - Sin- - 06.07.2009

Код:
G:\DOCUME~1\Mantas\Desktop\V64050~1.XX-\RPGLT-~1.0\GAMEMO~1\GRPLT.pwn(3737) : error 017: undefined symbol "pickupid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: help - refshal - 06.07.2009

pawn Код:
if(!strcmp(cmdtext, "/iseit", true))
{
new pickupid;
if(pickupid == pickups[0][svyturys]) //Svyturys
{
SetPlayerPos(playerid,154.3089,-1945.0850,4.4369);
return 1;
}
else return SetPlayerVirtualWorld(playerid,0);
}



Re: help - Sin- - 06.07.2009

thanks


Re: help - Correlli - 06.07.2009

Quote:
Originally Posted by cοοp
pawn Код:
if(!strcmp(cmdtext, "/iseit", true))
new pickupid;
if(pickupid == pickups[0][svyturys]) //Svyturys
{
new pickupid is defined as "0", so it means if 0 == svyturys-pickup then you will be teleported.
This is wrong.


Re: help - GTA_Rules - 06.07.2009

Indeed, and what is this supposed to do? If he's in a checkpoint, he's able to use the command? Then just use variables...