Jump to content
  • 0

Teleport


Deejaybwg

Question

Am facut un teleport de incercare ca sa invat sa fac:

    [pawn]if(strcmp(cmdtext,"/tele",true) == 0)

{

    if(IsPlayerInAnyVehicle(playerid))

    {

        SetVehiclePos(GetPlayerVehicleID(playerid),(104,2472.8088,918.7138,10.8203,266.8910,0,0,0,0,0,0);

    }

    else

    {

        SetPlayerPos(playerid,(104,2472.8088,918.7138,10.8203,266.8910,0,0,0,0,0,0);

    }

    return 1;

}[/pawn]

Am dat compile si uitati:

D:\[RSG]\Gamemodes\RSG.pwn(3294) : error 001: expected token: ",", but found ";"

D:\[RSG]\Gamemodes\RSG.pwn(3298) : error 001: expected token: ",", but found ";"

Cum le rezolv?

www.youtube.com/thebwgg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

[pawn]if(strcmp(cmdtext,"/tele",true) == 0)

{

    new vehicleid = GetPlayerVehicleID(playerid);

    if(IsPlayerInAnyVehicle(playerid))

    {

        SetVehiclePos(vehicleid,2472.8088,918.7138,10.8203);

    }

    else

    {

        SetPlayerPos(playerid,2472.8088,918.7138,10.8203);

    }

    return 1;

}[/pawn]

logo.png

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

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.