2 scripting-problems
#1

Hello,
I just made a script for a menu-skin-selection for the players on my roleplay-server.
But I'm only able to create one menu. If I create more I'll get 26 errors.
These are the following:
Код:
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(660) : error 017: undefined symbol "strget"
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(668) : error 017: undefined symbol "strget"
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(681) : error 017: undefined symbol "strget"
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(690) : error 017: undefined symbol "strget"
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(702) : error 017: undefined symbol "strget"
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1138) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1141) : warning 217: loose indentation
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1141) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1141) : error 004: function "OnPlayerExitedMenu" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1143) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1146) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1146) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1146) : error 004: function "OnPlayerInteriorChange" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1148) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1151) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1151) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1151) : error 004: function "OnPlayerKeyStateChange" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1153) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1156) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1156) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1156) : error 004: function "OnRconLoginAttempt" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1158) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1161) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1161) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1161) : error 004: function "OnPlayerUpdate" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1163) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1166) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1166) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1166) : error 004: function "OnPlayerStreamIn" is not implemented
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1168) : error 079: inconsistent return types (array & non-array)
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1171) : warning 225: unreachable code
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1171) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\GTA San Andreas\PAWNO\gamemodes\DR.pwn(1171) : error 004: function "OnPlayerStreamOut" is not implemented

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


26 Errors.
I did the menu like in the wiki, but there's still an error. I exclude the first menu ("Diddy") and there's no error in compiling left. But at the moment I include the second menu, there are these 26 errors.
This is my Callback OnPlayerSelectedMenuRow
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	new Menu:CurrentMenu = GetPlayerMenu(playerid);
	if(CurrentMenu == diddy)
	{
  switch(row)
  {
    case 0:
    {
      SetPlayerPos(playerid, -2098.9985, 900.8376, 76.7109);
      SetPlayerSkin(playerid, 193);
      SetPlayerInterior(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "Privater Skin");
    }
    case 1:
    {
      SetPlayerPos(playerid, -1342.0352, 500.5004, 18.2344);
      SetPlayerSkin(playerid, 287);
      SetPlayerInterior(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "Army Skin");
    }
	}
	if(CurrentMenu == padarom)
	{
  switch(row)
  {
    case 0:
    {
      SetPlayerPos(playerid, -2098.9985, 900.8376, 76.7109);
      SetPlayerSkin(playerid, 193);
      SetPlayerInterior(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "Privater Skin");
    }
    case 1:
    {
      SetPlayerPos(playerid, -1342.0352, 500.5004, 18.2344);
      SetPlayerSkin(playerid, 287);
      SetPlayerInterior(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "Army Skin");
    }
    case 2:
    {
      SetPlayerPos(playerid, -2026.0862, 67.1859, 28.6916);
      SetPlayerSkin(playerid, 279);
      SetPlayerInterior(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "San Andreas Rescue Department Skin");
    }
  }
}
	return 1;
}
Now the second problem, the checkpoints of the driving school I scripted don't work. I use IsPlayerInRangeOfPoint to check if a player is in a checkpoint, but it won't show the next cp.
This is a part of the script:
Код:
else if(IsPlayerInRangeOfPoint(i,1.0,-2011.2815,-295.5647,36.9567)) // Hier Fьgt ihr die Coords von den Oben gesezten 2 CP ein.
{
if(cp[i] == 15) // Hier auch um 1 Erhцhen
{
SetPlayerCheckpoint(i,-2003.1637,-177.6483,37.3404, 5.0); // Hier den 3 Coord Punkt eintragen
cp[i] = 16; //hier auch um 1 Erhцhen
}
}
else if(IsPlayerInRangeOfPoint(i,1.0,-2003.1637,-177.6483,37.3404)) // Hier Fьgt ihr die Coords von den Oben gesezten 2 CP ein.
{
if(cp[i] == 16) // Hier auch um 1 Erhцhen
{
SetPlayerCheckpoint(i,-2015.0184,-71.7125,36.8111, 5.0); // Hier den 3 Coord Punkt eintragen
cp[i] = 17; //hier auch um 1 Erhцhen
}
}
Padarom
Reply


Messages In This Thread
2 scripting-problems - by Padarom - 12.11.2009, 13:20
Re: 2 scripting-problems - by Jeffry - 12.11.2009, 13:56
Re: 2 scripting-problems - by DeathOnaStick - 12.11.2009, 14:28
Re: 2 scripting-problems - by Jeffry - 12.11.2009, 14:40
Re: 2 scripting-problems - by DeathOnaStick - 12.11.2009, 14:43
Re: 2 scripting-problems - by Padarom - 14.11.2009, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)