Jump to content
  • 0

Bot Generator


Guest DaniSnick

Question

Guest DaniSnick

Am descarcat Bot Generatorul lui DjDeeegu de pe sa-mp.com si imi da niste erori cand am terminat

"C:\Users\Administrator\Desktop\MovieMaker.pwn(496) : error 017: undefined symbol "NPCNAME"
C:\Users\Administrator\Desktop\MovieMaker.pwn(496) : error 036: empty statement
C:\Users\Administrator\Desktop\MovieMaker.pwn(497) : warning 217: loose indentation
C:\Users\Administrator\Desktop\MovieMaker.pwn(686) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
"

Eu la 686 nu vad nici un ; care nu este pus

LA 496  Nu stiu de ce.

La 496 Nu stiu de ce nu recunoaste cuvantul NPCNAME/npcname ca l-am mai folosit si mergea.

Please Help Me.

Deci am mai facut boti...dupa tutorialul vostru si a mers.

Doar ca am vrut sa imi fie mai usor cu programu asta...se pare ca nu.

"C:\Users\Administrator\Desktop\MovieMaker.pwn(497) : warning 217: loose indentation

C:\Users\Administrator\Desktop\MovieMaker.pwn(686) : error 001: expected token: ";", but found "

Ultimele 2 le-am rezolvat.

Dar aceea cu NPCname...nu stiu cum sa fac va rog.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Guest DaniSnick

Posteaza liniile Sa te putem ajuta.

public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 0;

	new playername[64];
	GetPlayerName(playerid,playername,64);
	return 0;
	}
     if(!strcmp(npcname,"Pilot",true))
    {
        PutPlayerInVehicle(playerid, Rustler, 0); // dont add this when on foot
        SetPlayerSkin(playerid, 55);
}

Link to comment
Share on other sites

public OnPlayerSpawn(playerid)
{
   if(IsPlayerNPC(playerid))
   {
       new npcname[MAX_PLAYER_NAME];
       GetPlayerName(playerid, npcname, sizeof(npcname));
       if(!strcmp(npcname, "NUME", true))
       {
           PutPlayerInVehicle(playerid, Rustler, 0); // dont add this when on foot
           SetPlayerSkin(playerid, 55);
       }
       return 1;
   }
   //restu de linii
   return 1;
}

Incearca asa.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest DaniSnick

=-" post="27606" timestamp="1267107464"]

public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "NUME", true))
        {
            PutPlayerInVehicle(playerid, Rustler, 0); // dont add this when on foot
            SetPlayerSkin(playerid, 55);
        }
        return 1;
    }
    //restu de linii
    return 1;
}

Incearca asa.

Mersi Vyorel.

ESTI CEL MAI BUN

MAXIMUM RESPECT.

Altadata tie iti cer ajutoru.

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.