Jump to content
  • 0

Errori


dariumare

Question

am primit niste erori si nustiu cum sa le rezolv:

D:\Resurse\SAMP\gamemodes\OnlyKill.pwn(28085) : error 036: empty statement
D:\Resurse\SAMP\gamemodes\OnlyKill.pwn(28112) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
si aici liniile:
if(strcmp(cmd, "/examen", true) == 0)
    {
       	if(PlayerToPoint(5.0,playerid,1413.2693,-1700.6459,13.5395))
       	{
			if(PlayerInfo[playerid][pPP] == 15); //linia 28085
			{
         		if(GetPlayerCash(playerid) >= 500)
         		{
           			if(PlayerInfo[playerid][pCarLic] == 0)
           			{
             			if(DMVPrepare[playerid] == 0)
          				{
               				DMVPrepare[playerid] = 1;
                  			GivePlayerCash(playerid,-5000);
                  			GameTextForPlayer(playerid, "~r~~h~-5000", 5000, 1);
             			}
                		else
                		{
               				SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !");
             			}
            		}
            		else
            		{
          				SendClientMessage(playerid,COLOR_GREY,"Deja ai licenta de sofer !" );
           			}
        		}
        		else
        		{
           			SendClientMessage(playerid,COLOR_GREY,"Nu ai bani pentru a da testul !");
  				}
			}
			else //linia 28112
			{
			    SendClientMessage(playerid,COLOR_GREY, "Ai 15 puncte penalizare, fa cerere pe forum pentru a primi carnetul inapoi !");
			}

 		}
    }

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Incearca asa: (l-am si facut mai scurt)

if(strcmp(cmd, "/examen", true) == 0)
{
	if( !PlayerToPoint(5.0,playerid,1413.2693,-1700.6459,13.5395) ) return 1;
	if(PlayerInfo[playerid][pPP] != 15) return SendClientMessage(playerid,COLOR_GREY, "Ai 15 puncte penalizare, fa cerere pe forum pentru a primi carnetul inapoi !");
	if(GetPlayerCash(playerid) < 500) return SendClientMessage(playerid,COLOR_GREY,"Nu ai bani pentru a da testul !");
	if(PlayerInfo[playerid][pCarLic] == 1) return SendClientMessage(playerid,COLOR_GREY,"Deja ai licenta de sofer !" );
	if(DMVPrepare[playerid] == 1) return SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !");

	DMVPrepare[playerid] = 1;
	GivePlayerCash(playerid,-5000);
	GameTextForPlayer(playerid, "~r~~h~-5000", 5000, 1);
	return 1;
}

; nu avea ce cauta la linia 28085.

Link to comment
Share on other sites

am facut tot ce ai zis si acum nu mai imi da erori dar nu functioneaza sistemul de Puncte de Penalizare uite aici:

http://pastebin.com/qjWWMxPu

Tu ai zis doar de erori.

Erorile sunt la toate serverele, dar punctele de penalizare doar la godfather, deci, posteaza in Probleme Godfather.

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.