SA-MP Forums Archive
Help pleasE? - 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 pleasE? (/showthread.php?tid=196585)



Help pleasE? - iGetty - 06.12.2010

Код:
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14513) : error 017: undefined symbol "cmd"
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14514) : warning 202: number of arguments does not match definition
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14519) : warning 202: number of arguments does not match definition
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Help please?

This is the thing here.

Код:
if(strcmp(cmd, "/enter", true) == 0)
			if(IsPlayerInRangeOfPoint(playerid, 6,  21,223.1871,  97.6708,  1003.9141))// // put your own cords here
	{
               SetPlayerInterior(playerid, 10);//here aswell, or Set interror here
               TogglePlayerControllable(playerid, 0);

               SetTimer("unfreeze" , false);
               return 1;
	}

	if(GetPVarInt(playerid, "RegistrationStep") >= 5)



Re: Help pleasE? - fangoth1 - 06.12.2010

Quote:
Originally Posted by getty154
Посмотреть сообщение
Код:
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14513) : error 017: undefined symbol "cmd"
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14514) : warning 202: number of arguments does not match definition
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14519) : warning 202: number of arguments does not match definition
C:\Users\dad\Desktop\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Help please?

This is the thing here.

Код:
if(strcmp(cmd, "/enter", true) == 0)
			if(IsPlayerInRangeOfPoint(playerid, 6,  21,223.1871,  97.6708,  1003.9141))// // put your own cords here
	{
               SetPlayerInterior(playerid, 10);//here aswell, or Set interror here
               TogglePlayerControllable(playerid, 0);

               SetTimer("unfreeze" , false);
               return 1;
	}

	if(GetPVarInt(playerid, "RegistrationStep") >= 5)
where did you put the command?


Re: Help pleasE? - iGetty - 06.12.2010

Quote:
Originally Posted by fangoth1
Посмотреть сообщение
where did you put the command?
Under Onplayercommandtext.


Re: Help pleasE? - fangoth1 - 06.12.2010

show the code


Re: Help pleasE? - fangoth1 - 06.12.2010

pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
      {
               if(IsPlayerInRangeOfPoint(playerid, 6,  21,223.1871,  97.6708,  1003.9141))// // put your own cords here

               SetPlayerInterior(playerid, 10);//here aswell, or Set interror here
               TogglePlayerControllable(playerid, 0);

               SetTimer("unfreeze" 5000, false);
               return 1;
    }
that is the right code aswell