Jump to content
  • 0

Cum pot face un al doilea teleport? :">


Guest 2Shae

Sunt Incepator.. cum pot face un al doilea teleport?  

14 members have voted

  1. 1. Sunt Incepator.. cum pot face un al doilea teleport?

    • Scriu acelasi lucru
      5
    • Ma ajuta cnv xD
      11


Question

Nu stiu cum :S

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/SF", cmdtext, true, 10) == 0)

{

SetPlayerPos(playerid, 1505.0670,-892.1097,58.7301) ;

return 1;

}

return 0;

}

si dak dupa scriu asta

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/LV", cmdtext, true, 10) == 0)

{

SetPlayerPos(playerid, ....,...,....) ;

return 1;

}

return 0;

}

error 021: symbol already defined: "OnPlayerCommandText"

C:\Documents and Settings\Felhasználó\Asztal\Server\pawno\Stunt+Drift+Kill_By_2Shae.pwn(204) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Felhasználó\Asztal\Server\pawno\Stunt+Drift+Kill_By_2Shae.pwn(204) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Felhasználó\Asztal\Server\pawno\Stunt+Drift+Kill_By_2Shae.pwn(204) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Felhasználó\Asztal\Server\pawno\Stunt+Drift+Kill_By_2Shae.pwn(204) : fatal error 107: too many error messages on one line

pls cnv help

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

MA NU TE CHINUI CA SA LE FACI TU

FA PRIN PROGRAME 8)

Descarci aia apoi este pe acolo ceva de genu "Teleport Generator"sau "Easy CMD PawN GeNe" sau "SA-MP PAWN"

Pui coordonatele alegi pe acolo cateva chestii si gata tai facut comana fara nici o eroare/warning

Link to comment
Share on other sites

  • 0

Farse" post="3428" timestamp="1228541659"]

MA NU TE CHINUI CA SA LE FACI TU

FA PRIN PROGRAME 8)

Descarci aia apoi este pe acolo ceva de genu "Teleport Generator"sau "Easy CMD PawN GeNe" sau "SA-MP PAWN"

Pui coordonatele alegi pe acolo cateva chestii si gata tai facut comana fara nici o eroare/warning

Ms mult.. programele alea mau ajutat

Link to comment
Share on other sites

  • 0

dar ce zici dak stii tu sa le faci ? sa ajungi sa umilesti pe aia kre au facut programele ? :>

Cititi asta

pey e foarte simplu... 

if( strcmp( cmdtext, "/teleport", true) == 0 )
{


return 1;
}
Asta e comanda in sine, ceea ce faci in ea o va face un teleport
if( strcmp(cmdtext, "/teleport", true) == 0 )
{
    SetPlayerPos(playerid, 0.000, 2.000, 2.000);
    SetPlayerInterior(playerid, 0); //afara
    SendClientMessage(playerid, COLOR, "Teleported!");
    return 1;
}
Asta e un teleport , dar fara vehicul, ca sa aflii dak e intr un vehicul trebuie sa verifici asta ( gen Dak ai mancat, culca-te, dak nu mancai nu puteai sa t culci  :D )
if( strcmp(cmdtext, "/teleport", true) == 0 )
{
    if( IsPlayerInAnyVehicle(playerid) )
    {
    new vehicle = GetPlayerVehicleID(playerid);
    SetVehiclePos(vehicle, 0.000, 2.000, 2.000);
    SetPlayerPos(playerid, 0.000, 2.000, 2.000);
    SetPlayerInterior(playerid, 0); //afara
    PutPlayerInVehicle(playerid, vehicle, 0);
    }else
    {
    SetPlayerPos(playerid, 0.000, 2.000, 2.000);
    SetPlayerInterior(playerid, 0); //afara
    SendClientMessage(playerid, COLOR, "Teleported!");
    }
    return 1;
}

Asta e o comanda si pentru vehicul dar si pentru cei fara vehicul in primu rand verific dak e intr un vehicul "IsPlayerInAnyVehicle",

In al 2lea rand ii iau idu vehiculului , ca si ip unui calculator, iar apoi ii setez pozitia la vehicul si a playerului, iar apoi il pun pe el pe locul 0 in vehicul , adik sofer .

SIMPLU :P

iar 0.000, 2.000, 2.000 , sunt coordonatele , primul e X , al 2 lea e Y, al 3 lea e Z ( X = latime, Y = lungime, Z = inaltime , INTR UN FEL , nu sunt chiara asa)

Iar coordonatele le iei in joc prin comanda /save si apar in savedpositions.txt in folderul San Andreas.

Ciau

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

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.