Yrace Problem
#1

Hey i modded Yrace to work by instead of giving money it gives server points (i have ServerPoints system in GM) and i did this:

Код:
			if(Ranking<4)
			{
				new winrar;
				if(Ranking == 1 && Participants == 1) {
				new file[128], pname[MAX_PLAYER_NAME];
			  GetPlayerName(playerid, pname, sizeof(pname));
			  format(file, sizeof(file), "Users/%s.ini", pname);
				serverpoints[playerid] = serverpoints[playerid]+50;
			  dini_IntSet(file, "serverpoints", serverpoints[playerid]);
			  }
				else if(Ranking == 1 && Participants == 2) {
	 			new file[128], pname[MAX_PLAYER_NAME];
			  GetPlayerName(playerid, pname, sizeof(pname));
			  format(file, sizeof(file), "Users/%s.ini", pname);
				serverpoints[playerid] = serverpoints[playerid]+50;
			  dini_IntSet(file, "serverpoints", serverpoints[playerid]);
			  }
				else winrar=Pot/6*PrizeMP; // Otherwise 3/6ths, 2/6ths and 1/6th.
				GivePlayerMoney(playerid,winrar);
				format(ystring,sizeof(ystring),"You have earned $%d from the race!",winrar);
				PrizeMP--;
				SendClientMessage(playerid,COLOR_GREEN,ystring);
			}
			Ranking++;
			Participants--;
	    DisablePlayerRaceCheckpoint(playerid);
	    if(Participants == 0)
	    {
	      endrace();
	    }
	  }
And for some reason i get these errors:

Код:
C:\Users\user\Desktop\SAMP Server\Everything World\pawno\include\Dini.inc(53) : error 017: undefined symbol "strlen"
C:\Users\user\Desktop\SAMP Server\Everything World\pawno\include\Dini.inc(53) : warning 215: expression has no effect
C:\Users\user\Desktop\SAMP Server\Everything World\pawno\include\Dini.inc(53) : error 001: expected token: ";", but found ")"
C:\Users\user\Desktop\SAMP Server\Everything World\pawno\include\Dini.inc(53) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\SAMP Server\Everything World\pawno\include\Dini.inc(53) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)