Gives me an error even thought there ain't nothing wrong? -
Write - 01.12.2014
fixed it, had to hook the arrays to compare the two
Re: Gives me an error even thought there ain't nothing wrong? -
Stinged - 01.12.2014
Use MAX_PLAYER_NAME instead of sizeof(LastAdmin[countt]) because it's a 2D array.
Re: Gives me an error even thought there ain't nothing wrong? -
Runn3R - 01.12.2014
You're probably missing a ";" above the error line.
Give us the line above the error line
Re: Gives me an error even thought there ain't nothing wrong? -
Write - 01.12.2014
Quote:
Originally Posted by Stinged
Use MAX_PLAYER_NAME instead of sizeof(LastAdmin[countt]) because it's a 2D array.
|
What? that dosen't make sense, I am using LastAdmin[countt] for something else, why would I just replace it with MAX_PLAYER_NAME if it is already defined as one here new LastAdmin[21][MAX_PLAYER_NAME];
Quote:
Originally Posted by Runn3R
You're probably missing a ";" above the error line.
Give us the line above the error line
|
I'm not, I even moved the code it gives me the new line with that code there.
Re: Gives me an error even thought there ain't nothing wrong? -
Runn3R - 01.12.2014
LastAdmin[21][MAX_PLAYER_NAME]
This is basicly: LastAdmin[21][24]...
Re: Gives me an error even thought there ain't nothing wrong? -
Write - 01.12.2014
Quote:
Originally Posted by Runn3R
LastAdmin[21][MAX_PLAYER_NAME]
This is basicly: LastAdmin[21][24]...
|
That dosen't make any sense at all -_-
Re: Gives me an error even thought there ain't nothing wrong? -
Runn3R - 01.12.2014
Code:
GetPlayerName(playerid, LastAdmin[countt], 24);
MAX_PLAYER_NAME == 24 it is already defined inside a_samp.
So yeah.
Re: Gives me an error even thought there ain't nothing wrong? -
Write - 01.12.2014
deleted
Re: Gives me an error even thought there ain't nothing wrong? -
Runn3R - 01.12.2014
Can you give us the full code? We can't help you like this -.-
Re: Gives me an error even thought there ain't nothing wrong? -
Write - 01.12.2014
fixed