hello please help me
#1

hey all

look i want to add in Y_race gametextfroplayer this

GameTextForPlayer(playerid, "Race Started Type /Join", 1500, 1);
here:
public startrace()
{
GameTextForPlayer(playerid, "Race Started Type /Join", 1500, 1);
format(ystring,128,"Race \'%s\' Has Started, type /join to join Race!",CRaceName);
SendClientMessageToAll(COLOR_YELLOW,ystring);
if(Racemode == 0) format(ystring,sizeof(ystring),"default");
else if(Racemode == 1) format(ystring,sizeof(ystring),"ring");
else if(Racemode == 2) format(ystring,sizeof(ystring),"yoyo");
else if(Racemode == 3) format(ystring,sizeof(ystring),"mirror");
format(ystring,sizeof(ystring),"Racemode: %s Laps: %d",ystring,Racelaps);
if(PrizeMode >= 2) format(ystring,sizeof(ystring),"%s Join fee: %d",ystring,JoinFee);
if(Airrace == 1) format(ystring,sizeof(ystring),"%s AIR RACE",ystring);
if(Racemode == 0 || Racemode == 3) format(ystring,sizeof(ystring),"%s Track lenght: %0.2fkm", ystring, RLenght/1000);
else if(Racemode == 1) format(ystring,sizeof(ystring),"%s Lap lenght: %.2fkm, Total: %.2fkm", ystring, LLenght/1000, LLenght * Racelaps / 1000);
SendClientMessageToAll(COLOR_GREEN,ystring);
RaceStart=0;
RaceActive=1;
ScoreChange=0;
Ranking=1;
PrizeMP=3;
}


but it's give error:

C:\Documents and Settings\Black_Cobra\Desktop\filterscripts\Y_Race. pwn(1767) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

So undefined symbol "playerid"!
on game mode or /fs top do like this:
Код:
new playerid
im not so good scripter but try it!
Reply
#3

You could create a loop I dont know if that would be the best (if not just add the playerid to the public and the forward) :P or you could change it to GameTextForAll then you dont need playerid .P
Reply
#4

Код:
You have: 'public startrace()'
Maybe you should Try: public startrace(playerid)
Reply
#5

yea yea i know that
Reply
#6

thank you guys
but very very thank's GforceNL it's now work
Reply
#7

Plz help me!
http://forum.sa-mp.com/index.php?topic=152168.0
I need help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)