Error Info
Code:
new string[100];Solve the below errors please. ERRORS: Error1: Undefined symbol "name" on line 20 //Which name is it talking about,There are two names? Error2: Invalid expression, assumed zero on line 20 //What to do with this? Error3: Expected token: ";", but found "]" on line 20 //What is this? |
Re: Error Info
new name = get_user_name(playerid, sizeof(name), strlen(string);
|
Re: Error Info
You can't use natives like that. This is correct:
PHP Code:
You need to assign a variable and select where to store the name with given maximum characters. Charsmax gets the maximum lenght that a string array can contain, it's the same as sizeof(name) - 1 (in this case, that's the same as 31). Then the player name is stored into the "name" string. |
Re: Error Info
I didn't want to start a new thread for this question for its so short. This line gives me a "warning" on compile and i'm wondering why....
PHP Code:
Quote:
Code:
new Float:calc = (g_playerFrags[id] + i_offset) / LEVEL_INCREMENT |
Re: Error Info
That has nothing to do with this thread. Post a new one and show what LVL5 and LEVEL_INCREMENT are.
|
| All times are GMT -4. The time now is 00:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.