Shift Key start engine problem
#6

Quote:
Originally Posted by Etch ❽ H
try this :
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER) && (PlayerFrozen[playerid] == 0) && (PlayerInfo[playerid][pLocked] == 0)) {
 if(newkeys == KEY_JUMP)
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string, sizeof(string), " %s has attempted to Start the vehicle", sendername);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				printf("%s", string);
			  EnterCarTime[playerid] += 1;
		  	return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, " You are not in a Vehicle!");
		  	return 1;
			}
		}
  if (IsKeyJustDown(KEY_FIRE, newkeys, oldkeys))
  {
	  if(IsPlayerConnected(playerid))
		{
      if (PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 8)
      {
        if(PlayerInfo[playerid][pC4Used] == 0)
        {
	     		CreateExplosion(bx, by, bz, 7, 4);
	    		PickUpC4(playerid);
	    		PlayerInfo[playerid][pC4Used] = 1;
				}
			}
			new string[128];
			if(editingcdvehpos[playerid])
			{
				TogglePlayerControllable(playerid, false);
				format(string,256,"Is this the new position you want?.");
		    ShowPlayerDialog(playerid,DIALOG_CDEDITPARK,DIALOG_STYLE_MSGBOX,"Warning:",string,"Ok","Cancel");
			}
			if(editingcdvehnew[playerid])
			{
        TogglePlayerControllable(playerid, false);
        format(string,256,"Is this the new position you want?.");
		    ShowPlayerDialog(playerid,DIALOG_CDEDITPARK,DIALOG_STYLE_MSGBOX,"Warning:",string,"Ok","Cancel");
			}
		}
  }
	return 1;
}
I get these:
Код:
C:\Documents and Settings\Administrator\щемзп дтбегд\SunRise Roleplay\gamemodes\srrp.pwn(4247) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Administrator\щемзп дтбегд\SunRise Roleplay\gamemodes\srrp.pwn(4247) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Administrator\щемзп дтбегд\SunRise Roleplay\gamemodes\srrp.pwn(4247) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\щемзп дтбегд\SunRise Roleplay\gamemodes\srrp.pwn(4247) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Shift Key start engine problem - by Taz86 - 13.04.2010, 18:16
Re: Shift Key start engine problem - by Taz86 - 13.04.2010, 19:35
Re: Shift Key start engine problem - by aircombat - 13.04.2010, 19:53
Re: Shift Key start engine problem - by Taz86 - 13.04.2010, 19:57
Re: Shift Key start engine problem - by aircombat - 13.04.2010, 20:08
Re: Shift Key start engine problem - by Taz86 - 13.04.2010, 20:39
Re: Shift Key start engine problem - by Mechscape - 13.04.2010, 20:40
Re: Shift Key start engine problem - by aircombat - 13.04.2010, 20:42
Re: Shift Key start engine problem - by Mechscape - 13.04.2010, 20:47
Re: Shift Key start engine problem - by Taz86 - 14.04.2010, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)