[Server] HELP Me 4 Waring undefined symbol "signLabels" - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12) --- Thread: [Server] HELP Me 4 Waring undefined symbol "signLabels" (/showthread.php?tid=2874) |
HELP Me 4 Waring undefined symbol "signLabels" - nhocngu24 - 2024-08-29 ERROR D:\caybienbao (1).pwn(25) : error 017: undefined symbol "signLabels" D:\caybienbao (1).pwn(25) : warning 215: expression has no effect D:\caybienbao (1).pwn(25) : error 001: expected token: ";", but found "]" D:\caybienbao (1).pwn(25) : error 029: invalid expression, assumed zero D:\caybienbao (1).pwn(25) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. public OnGameModeInit() { for (new i = 0; i < MAX_SIGNS_ADMIN; i++) { signLabels[i] = INVALID_TEXT_LABEL; // Kh?i t?o giá tr? bi?n báo không h?p l? } // Kiem tra gia tri cua mang signPositions if (signPositions[0][0] == 0.0 || signPositions[0][1] == 0.0 || signPositions[0][2] == 0.0) { printf("error: invalid float values!"); return 0; // Dang lai neu gia tri khôong hop le } return 1; } RE: HELP Me 4 Waring undefined symbol "signLabels" - julien.roblique - 2024-08-30 The warning "warning 215: expression has no effect" means that the compiler has detected an expression that has no impact on the execution of the program. This often happens when a line of code performs no concrete action, such as assigning a value or calling a function. In your code, this error might occur if the compiler doesn’t correctly recognize certain values or if you have a poorly formed expression. To identify and fix this warning, here are a few checks you can perform:
Here are some suggestions:
Code: #define INVALID_TEXT_LABEL -1 // or another appropriate value
Here’s an example: Code: #define MAX_SIGNS_ADMIN 10 |