Jump to content
  • 0

Ajutor va rog...


Septy

Question

Salut!Am si eu o problema la compilarea GM-ului.Am adaugat niste masini personale, dar cand il compilez imi da erorile astea:

C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(4934) : warning 235: public function lacks forward declaration (symbol "JB_OnPlayerEnterRaceCheckpoint")
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Uitati si linia 16555:
else if(strcmp(x_job,"ownablecar",true) == 0)
Si linia 4934:
public OnPlayerEnterRaceCheckpoint(playerid)

Respecta si vei fi respectat!

-----------------------------------

YM!:septy.icf17

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Uite:

			new proplev = strval(tmp);
	        //if(strcmp(x_job,"car",true) == 0)
	        for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
				{
					format(string, sizeof(string), "House: %d", i);
					SendClientMessage(playerid, COLOR_GRAD2, string);
					if(proplev > 0)
					{
					    if(strcmp(x_job,"level",true) == 0)
					    {
							HouseInfo[i][hLevel] = proplev;
						}
						else if(strcmp(x_job,"price",true) == 0)
					    {
							HouseInfo[i][hValue] = proplev;
						}
					}
				}
			}
		    else if(strcmp(x_job,"ownablecar",true) == 0)
			{
Si acum dupa ce dau compile imi apar erorile astea :
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(12083) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37066) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37081) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Linia 12083:
new mod = 50;
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
Si linia 37081:
	result[index - offset] = EOS;
	return result;
}

Sa-mi spuneti daca trebuie sa mai postez vreo linie.

Respecta si vei fi respectat!

-----------------------------------

YM!:septy.icf17

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.