Strange Error
#1

Hi i found my old edit of script and wanted to complie it but i got 7 errors
Код:
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(32416) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(8) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(899) : error 017: undefined symbol "RPN"
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(1065) : error 012: invalid function call, not a valid address
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(1065) : warning 215: expression has no effect
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(1065) : error 001: expected token: ";", but found ")"
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(1065) : error 029: invalid expression, assumed zero
C:\Users\Richard\Desktop\New folder (2)\gamemodes\RWRP.pwn(1065) : fatal error 107: too many error messages on one line
Reply
#2

show lines
Reply
#3

Код:
	Line 1065	if(IsPlayerLoggedIn(i))
		{
		    TicketPrice[playerid][i] = 0;
		    TicketPrice[i][playerid] = 0;
			if(WeedSeller[i] == playerid)
			{
Код:
line 899 	}
		format(string, sizeof(string), "** %s has disconnected and has failed the robbery. **", RPN(playerid));
Код:
line 8 
new IsPlayerLoggedIn[MAX_PLAYERS];
Reply
#4

Show the full code we can't see if you're missing a bracket or anything else like this.
Reply
#5

pawn Код:
if(IsPlayerLoggedIn(i))
// replace with
if(IsPlayerLoggedIn[i]))

// Put this as your last macro:

#undef MAX_PLAYERS
#define MAX_PLAYERS 500

// And RPN one, I think it's for RolePlay name, do you have function in script which returns players name without underscore:
// If not, try this one:

stock RPN(playerid)
{
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof pName);
    new pos = -1;
    while(pName[pos++])
    {
        if(pName[pos] == '_') pName[pos] = ' ';
    }
    return pName;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)