Jump to content

Question

Posted (edited)

Problema intalnita (descriere): Cateva eroti pe care nu le pot rezolva la compliere.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(1979) : error 001: expected token: ";", but found "]"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(1980) : error 017: undefined symbol "MAX_HOUSES"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(1981) : error 017: undefined symbol "MAX_HOUSES"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(1982) : error 017: undefined symbol "MAX_HOUSES"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(2356) : error 017: undefined symbol "PlayerInfo"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(2356) : warning 215: expression has no effect
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(2356) : error 001: expected token: ";", but found "]"
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(2356) : error 029: invalid expression, assumed zero
D:\GM samp\RoRPG\New folder\gamemodes\RoRPG.pwn(2356) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

8 Errors.
[/code]
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, am incercat sa rezolv singur, iata liniile:

 

 1979 new HousePickup[MAX_HOUSES];
1980 new HousePickup1[MAX_HOUSES];
1981 new Text3D:HouseLabel[MAX_HOUSES];
1982 new HouseIcon[MAX_HOUSES][15];
 
2356                  if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] != 8) [/code]
Edited by ZacK™
Am gresit ceva la [code][/code]

3 answers to this question

Recommended Posts

  • 0
Posted

deasupa la cele cu [MAX_HOUSES]; adauga #define MAX_HOUSES 200

Pentru cea cu PlayerInfo, probabil ai copiat scriptul din alta parte. Probabil ai alt nume la acele variabile. Cauta PlayerData, sau vezi la alta comanda ce nume se foloseste. 

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

  • 0
Posted

Liniile complete:

public SearchingHit(playerid)
{
    new string[256];
    new giveplayer[MAX_PLAYER_NAME];
    new searchhit = 0;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(searchhit == 0)
            {
                if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] = 8);
                {
                    GetPlayerName(i, giveplayer, sizeof(giveplayer));
                    searchhit = 1;
                    hitfound = 1;
                    hitid = i;
                    for(new k=0; k<MAX_PLAYERS; k++)
                    {
                        if(IsPlayerConnected(k))
                        {
                            if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == 8)
                            {
                                   SendClientMessage(k, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
                                SendClientMessage(k, COLOR_DBLUE, "*** Incoming Message: A Hit has become available. ***");
                                format(string, sizeof(string), "Person: %s   ID: %d   Value: $%d", giveplayer, i, PlayerInfo[i][pHeadValue]);
                                SendClientMessage(k, COLOR_DBLUE, string);
                                SendClientMessage(k, COLOR_YELLOW, "Use Givehit hitmanid, to assign the Contract to one of the Hitmans.");
                                SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
                              }
                        }
                    }
                    return 0;
                }
            }
        }
    }
    if(searchhit == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   No Contracts available !");
    }
    return 0;
}
  • 0
Posted
if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] = 8) // sterge acel " ; " de la sfarsitul liniei cu if

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.