String error
#1

How to fix this:

Код:
C:\Users\Ramin\Desktop\PL-RP\gamemodes\PL-RP.pwn(7717) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
	WristWatch = TextDrawCreate(577.000000, 50.000000, string);
	TextDrawAlignment(WristWatch, 2);
	TextDrawBackgroundColor(WristWatch, 255);
	TextDrawFont(WristWatch, 3);
	TextDrawLetterSize(WristWatch, 0.709998, 2.100001);
	TextDrawColor(WristWatch, -1);
	TextDrawSetOutline(WristWatch, 1);
	TextDrawSetProportional(WristWatch, 0);
	textdrawscount++;
Reply
#2

pawn Код:
new string[128];
EDIT : You also need to format that string,
Reply
#3

you are creating a textdraw, pls tell me what you would you like to be the text that appears? cuz now you are refering to a string that doesnt exist, if you want to appear the word string just do
Код:
WristWatch = TextDrawCreate(577.000000, 50.000000, "string");
Reply
#4

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
pawn Код:
new string[128];
EDIT : You also need to format that string,
How?
Reply
#5

Click.
Reply
#6

If you're going to have it use 12-hour clock on that string, you could use this if you want
pawn Код:
//This will display 12-hour clock instead of 24-hour clock.
    format(string, sizeof(string), "%02d:%02d %s", hour>(12)?(hour-12):(hour), minute, hour>(12)?("P.M."):("A.M."));
EDIT: Well, forgot
pawn Код:
new hour, minute, sec;
    gettime(hour, minute, sec);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)