Error 17: undefined symbol [EASY +REP]
#1

So these are the error codes
PHP код:
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(96) : error 017undefined symbol "pStats"
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(96) : warning 215expression has no effect
C
:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(96) : error 001expected token";"but found "]"
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(96) : error 029invalid expressionassumed zero
C
:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(96) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

And here are the lines

PHP код:
forward AccountRegister(playerid);
public 
AccountRegister(playerid)
{
    
pStats[playerid][Admin] = cache_get_field_content_int(0"Admin");
    
pStats[playerid][VIP] = cache_get_field_content_int(0"VIP");
    
pStats[playerid][Money] = cache_get_field_content_int(0"Money");
    
pStats[playerid][ID] = cache_get_field_content_int(0"ID");
    
pStats[playerid][Bank] = cache_get_field_content_int(0"Bank");
    return 
1;

and here is the enum definition

PHP код:
enum pp
{
    
Name,
    
Password,
    
Admin,
    
ID,
    
Money,
    
Bank,
    
SCoins
}
new 
pStats[MAX_PLAYERS][pp]; 
Reply
#2

try to make it like that:

enum PlayerData
{
//Here add Name,password....
}
new AccInfo[MAX_PLAYERS][PlayerData];
Reply
#3

Add VIP in enum
Reply
#4

still

Quote:

C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(172) : error 017: undefined symbol "AccInfo"
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(172) : warning 215: expression has no effect
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(172) : error 001: expected token: ";", but found "]"
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(172) : error 029: invalid expression, assumed zero
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(172) : fatal error 107: too many error messages on one line

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


4 Errors.

Reply
#5

You dont need to change anything from first post,just in your enum add VIP
Reply
#6

Quote:
Originally Posted by TonyVk
Посмотреть сообщение
You dont need to change anything from first post,just in your enum add VIP
it gets me error, whether i changed or not. is there something wrong with mysql?
Reply
#7

Is enum and "new pStats..." before or after that public because all public with that pStats need to be after enum and new pStats
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)