23.01.2013, 03:16
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.
FIRST ERROR
THE REST:
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
Код:
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);
Код:
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);