Newbie = Errors! Help Appreciated!
#1

Okay so I downloaded this script and Iv been trying to fix it for a while by my self, Iv narrowed down the errors to below, I'm pretty sure it has something to do with the custom radio station streaming but iv tried to do all I can with it like removing it all together but I just get more errors, and Id really like to just make it work, so I have ran out of hope fixing it myself and decided to see if you all could help me, I would really appreciate it I'm pretty new to scripting.

Here are the errors:

pawno\include\/Vision/Enums.inc(977) : error 029: invalid expression, assumed zero
(1521) : error 017: undefined symbol "pChannel"
(4248) : error 017: undefined symbol "pChannel"
(4260) : error 017: undefined symbol "pChannel"
(4262) : error 017: undefined symbol "pOwnedChannel"
(4266) : error 017: undefined symbol "pOwnedChannel"
(4276) : error 017: undefined symbol "radioChannel"
(4288) : error 017: undefined symbol "radioChannel"
(4343) : error 017: undefined symbol "radioChannel"
(4350) : error 017: undefined symbol "radioChannel"
(4529) : error 017: undefined symbol "pChannel"
(4530) : error 017: undefined symbol "pOwnedChannel"
(4538) : error 017: undefined symbol "PlayerVehicle"
(4538) : warning 215: expression has no effect
(4538) : error 001: expected token: ";", but found "]"
(4538) : error 029: invalid expression, assumed zero
(4538) : fatal error 107: too many error messages on one line

Here are the lines the errors are coming from:

(1521) new channel = PlayerInfo[id][pChannel];

(4248) PlayerInfo[playerid][pChannel] = channel;

(4260)stock GetPlayerChannel(playerid) return PlayerInfo[playerid][pChannel];

(4262)stock GetOwnedChannel(playerid) return PlayerInfo[playerid][pOwnedChannel];

(4266) if(PlayerInfo[playerid][pOwnedChannel] > 0)

(4276) if(RadiosInfo[i][radioChannel] == channelid && RadiosInfo[i][radioOn] == 1)

(4288) if(RadiosInfo[i][radioChannel] == channelid)

(4343) format(query, sizeof(query), "UPDATE `users` SET `channel` = '0' WHERE `channel` = %d", RadiosInfo[slotid][radioChannel]);

(4350) format(query, sizeof(query), "UPDATE `users` SET `channel` = %d, `authed` = %d WHERE `channel` = %d", 0, 0, RadiosInfo[slotid][radioChannel]);

(4529) PlayerInfo[playerid][pChannel] = 0;

(4530) PlayerInfo[playerid][pOwnedChannel] = 0;

(4538) strmid(PlayerVehicle[playerid][pVeh1], "None", 0, strlen("None"), 255);


Thanks for your time, and your help!
Reply
#2

Please put the code so we could see it and fix it
Reply
#3

Maybe u haven't created enums for the things the errors tell u?
Reply
#4

Plz define those undefined sim les like #define
Reply
#5

You haven't included your Enums.inc correctly.

Код HTML:
pawno\include\/Vision/Enums.inc(977) : error 029: invalid expression, assumed zero
Reply
#6

Include your Enums.inc
Reply
#7

We are both working on this server, anyhow here it is. As you can see, it's the error and Enums is included.

Код:
C:\Users\Disturbed\Desktop\Unique\pawno\include\/Vision/Enums.inc(977) : error 029: invalid expression, assumed zero
It is included -
Код:
//=================Includes=================//
#include "/Vision/Enums.inc" // PlayerInfo's and 'new' stuff
#include "/Vision/Forwards.inc" // Forward's for publics
//=================Includes=================//
Also here's another error we're getting.
Код:
C:\Users\Disturbed\Desktop\Unique\gamemodes\RP.pwn(4540) : error 028: invalid subscript (not an array or too many subscripts): "PlayerVehicle"
C:\Users\Disturbed\Desktop\Unique\gamemodes\RP.pwn(4540) : warning 215: expression has no effect
C:\Users\Disturbed\Desktop\Unique\gamemodes\RP.pwn(4540) : error 001: expected token: ";", but found "]"
C:\Users\Disturbed\Desktop\Unique\gamemodes\RP.pwn(4540) : error 029: invalid expression, assumed zero
C:\Users\Disturbed\Desktop\Unique\gamemodes\RP.pwn(4540) : fatal error 107: too many error messages on one line
Код:
strmid(PlayerVehicle[playerid][pVeh1], "None", 0, strlen("None"), 255);
	strmid(PlayerVehicle[playerid][pVeh2], "None", 0, strlen("None"), 255);
	strmid(PlayerVehicle[playerid][pVeh3], "None", 0, strlen("None"), 255);
This is under the
Код:
stock ResetPlayerVariables(playerid)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)