Several Errors For Walkie Talkie
#1

Hello SAMP!
Here lately i've been taking it upon myself to learn and PAWN
I've attempted to add a Walkie Talkie function to our server.

I've come to a halt and turn to you all for lessons.


Код:
(60627) : error 033: array must be indexed (variable "pWalkie")
(60629) : error 033: array must be indexed (variable "pWalkieFreq")
(60681) : error 033: array must be indexed (variable "pWalkieFreq")
(60685) : error 033: array must be indexed (variable "pWalkie")
(60687) : error 033: array must be indexed (variable "pWalkieFreq")
(60688) : error 012: invalid function call, not a valid address
(60688) : error 033: array must be indexed (variable "pWalkieFreq")
(60688) : error 029: invalid expression, assumed zero
(60688) : fatal error 107: too many error messages on one line
FIRST ERROR

Код:
new level;
level = strval(tmp);
if(level > 9999 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Dont go below frequency 0, or above number 9999!"); return 1; }
if (PlayerInfo[playerid][pWalkie] == 1)//Line 60627
{
PlayerInfo[playerid][pWalkieFreq] = level;//Line 60629
format(string, sizeof(string), "   You have set your Walkie Talkie freq to %d",level);
THE REST:
Код:
if(PlayerInfo[playerid][pJailed] > 0)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "[INFO]: Your radio has been confiscated, You will receive it at the front.");
				return 1;
			}
			if(PlayerInfo[playerid][pWalkieFreq] == 0)//Line 60681
			{
				return 1;
			}
		    if(PlayerInfo[playerid][pWalkie] == 1)//Line 60685
			{
				format(string, sizeof(string), "** Ch[%d] %s: %s **",PlayerInfo[playerid][pWalkieFreq], sendername, result);//Line 60687
				SendWalkieMessage(PlayerInfo[playerid][pWalkieFreq],0x00C6C696, string);//Line 60688
				format(string,sizeof(string), "%s (walkie talkie): %s", sendername, result);
Reply


Messages In This Thread
Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 03:16
Re: Several Errors For Walkie Talkie - by RajatPawar - 23.01.2013, 03:42
Re: Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 03:57
Re: Several Errors For Walkie Talkie - by Scenario - 23.01.2013, 04:02
Re: Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 04:06
Re: Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 04:10
Re: Several Errors For Walkie Talkie - by Scenario - 23.01.2013, 04:11
Re: Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 04:14
Re: Several Errors For Walkie Talkie - by Scenario - 23.01.2013, 04:16
Re: Several Errors For Walkie Talkie - by DJ_Shocker - 23.01.2013, 04:17

Forum Jump:


Users browsing this thread: 1 Guest(s)