Compiler Errors
#1

C:\Documents and Settings\User\Desktop\Windows-Server\gamemodes\vx-rp.pwn(2362) : warning 219: local variable "n" shadows a variable at a preceding level
C:\Documents and Settings\User\Desktop\Windows-Server\gamemodes\vx-rp.pwn(311 : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\User\Desktop\Windows-Server\gamemodes\vx-rp.pwn(311 : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\Windows-Server\gamemodes\vx-rp.pwn(311 : error 017: undefined symbol "n"
C:\Documents and Settings\User\Desktop\Windows-Server\gamemodes\vx-rp.pwn(311 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Line 2362: for(new n; n < MAX_PLAYER_NAME; n++) {
Line 3118: format(result, sizeof(result), "%s\n(Business %d - un-owned)\nPrice: $%d (/
I'll be greatful if someone would help me solve this errors
Reply
#2

You must define "n".

#define n "Input here" //Without quote marks
Reply
#3

nope didn't work, and how to fix the 3118 row error?
Reply
#4

Holy moly. Post line 3118.
Reply
#5

Hey post line 3262 and 3118 here and mark them.
Reply
#6

Quote:
Originally Posted by Test23
Посмотреть сообщение
You must define "n".

#define n "Input here" //Without quote marks
Do you even think you know what the problem is?
Reply
#7

Quote:
Originally Posted by Test23
Посмотреть сообщение
You must define "n".

#define n "Input here" //Without quote marks
That will do absolutely nothing. Actually, it will only make it worse.
Post the lines that are causing your compiler to error.

The first error is because you have duplicated 'N' values.
An example would be:
pawn Код:
#include < a_samp >
main() {}
new n = something; // global value.

public OnPlayerConnect(playerid)
{
    new n = something; // non-global value, same name as the global value, will cause a collision and cause errors when compiling.
    return ( true ) ;
}
As for part two:
Please show us the complete string. You are missing a part of it.
Reply
#8

The 2nd error means, you have a string that doesn't end.
Something like this
pawn Код:
new string[] = " This is a string value
See that it doesn't contain a " at the end.
And all the errors after the 2nd one are all caused by this.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)