#1

guys i get Lotto Script and modify it so it looks nice now but the problem is when i try to compile it i get an error

Error:

Код:
C:\Documents and Settings\Administrator\Desktop\Server\filterscripts\lotto.pwn(200) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
and here is the part of code:

Код:
IsThereAWinner = 1;
					  WinnerID = i;
						GetPlayerName(i, WinnerName, sizeof(WinnerName));
						GivePlayerMoney(i, LottoJackpot);
						new string[256];
						format(string, sizeof(string),"~w~Congratulation %s! You Are Today's Lotto Winer:~g~ $%d", WinnerName,LottoJackpot);
						GameTextForPlayer(playerid,string,5000,3); // LINE 200
						ResetJackpot();
ok this is my first problem

second problem is i wanna add to lotto script ammm ''timer''

if hours is there ... ammm example: if hour is 8:00 am it will send client message with green only 3 hours more for today's lotto ...

how i can make this ?

if hours is 8:00 or 10:00 or idk how much it will send a client message ...

ty for any help

Kljukec
Reply
#2

The Callback/timer, in which your code gets executed, does it pass the variable 'playerid' ?
Reply
#3

Quote:
Originally Posted by dice7
The Callback/timer, in which your code gets executed, does it pass the variable 'playerid' ?
hmmm i dont know know what do u mean can u explain a bit more with this variable etc

ty for help
Reply
#4

Show all of your loto code
Reply
#5

Lol, don't complicate. He has 'i' because there is no playerid on that clalback I suppose and problem in on line 200, so just change:
pawn Код:
GameTextForPlayer(playerid,string,5000,3); // LINE 200
to
pawn Код:
GameTextForPlayer(i,string,5000,3); // LINE 200
Reply
#6

Quote:
Originally Posted by Sergiy
Lol, don't complicate. He has 'i' because there is no playerid on that clalback I suppose and problem in on line 200, so just change:
pawn Код:
GameTextForPlayer(playerid,string,5000,3); // LINE 200
to
pawn Код:
GameTextForPlayer(i,string,5000,3); // LINE 200
thanks alot not tested yet but there is no errors

i just wanna ask this... now when player will win it will write the message on his screen ?

and another question : what about time , that i ask ? can anyone help cuz i need this like : when hour will be 10:00 it will write message for all : Only 8 hours left for today's lotto draw ! Pick Your Number Fast With /lotto [number] how i can make this any help ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)