Undefined Symbol error
#1

Hello , i have problem i got error C:\Users\Jarek\Desktop\Lukasza Files\C-WARS\gamemodes\cwars.pwn(470) : error 017: undefined symbol "string"

Line :

format(string, sizeof(string), "%s (%d) is pausing at moment", pName, clickedplayerid);


P.s i'm new in PAWNO
Reply
#2

before the format add
pawn Код:
new string[128];
You have to declare variables in pawno
Reply
#3

Quote:
Originally Posted by Respekt
Посмотреть сообщение
Hello , i have problem i got error C:\Users\Jarek\Desktop\Lukasza Files\C-WARS\gamemodes\cwars.pwn(470) : error 017: undefined symbol "string"

Line :

format(string, sizeof(string), "%s (%d) is pausing at moment", pName, clickedplayerid);


P.s i'm new in PAWNO
you forgot to :

pawn Код:
#define STRING_LENGTH (128)
new string[ STRING_LENGTH ];
Edit:


Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
before the format add
pawn Код:
new string[256];
You have to declare variables in pawno
256? you need to read ****** optimization thread.
Here : https://sampforum.blast.hk/showthread.php?tid=57018
Reply
#4

Big thanks guys for your help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)