#1

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

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

Код:
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.
Reply
#4

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

thanks
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)