Strange Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strange Error (
/showthread.php?tid=492176)
Strange Error -
[L]azy[H]aze - 02.02.2014
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
Re: Strange Error -
Vanter - 02.02.2014
show lines
Re: Strange Error -
[L]azy[H]aze - 02.02.2014
Код:
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];
Re: Strange Error -
Beckett - 02.02.2014
Show the full code we can't see if you're missing a bracket or anything else like this.
Re: Strange Error -
erminpr0 - 02.02.2014
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;
}