Jump to content
  • 0

SetPlayerPos Special


IcE.

Question

sal, am facut unde SetPlayerPos & SetVehiclePos. Dar cand ii dau complire imi da 7 Warnings.

F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(14) : warning 225: unreachable code
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch
F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch

Uitati si FS

#include <a_samp>
new string3[128];
new string4[128];
stock TelePos(playerid,text[],textw[],x,y,z)
{
    new pn[16];
    GetPlayerName(playerid, pn, 16);
    //new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {
    return
SetPlayerPos(playerid,x,y,z);
    format(string3, sizeof(string3), "%s sa dus la /%s",pn, text);
    SendClientMessageToAll(0xFFD700AA, string3);
    format(string4, sizeof(string4), "Bun venit la  /%s",textw);
    SendClientMessageToAll(0xFFD700AA, string4);
    }
    SetPlayerPos(playerid,x,y,z);
    format(string3, sizeof(string3), "%s sa dus la /%s",pn, text);
    SendClientMessageToAll(0xFFD700AA, string3);
    format(string4, sizeof(string4), "Bun venit la  /%s",textw);
    SendClientMessageToAll(0xFFD700AA, string4);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sl", cmdtext, true, 10) == 0)
    {
    TelePos(playerid,"sl","Stunt Land",-2453.7859,1444.5114,5.1977);
    return 1;
    }
    if (strcmp("/sl2", cmdtext, true, 10) == 0)
    {
    TelePos(playerid,"sl2","Stunt Land",-1180.7446,-1059.5511,128.7267);
    return 1;
    }
return 0;
}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

X,Y,Z sunt floaturi

#include <a_samp>
new string3[128];
new string4[128];
stock TelePos(playerid,text[],textw[],Float:x,Float:y,Float:z)
{
    new pn[16];
    GetPlayerName(playerid, pn, 16);
    //new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {

    SetPlayerPos(playerid,x,y,z);
    format(string3, sizeof(string3), "%s sa dus la /%s",pn, text);
    SendClientMessageToAll(0xFFD700AA, string3);
    format(string4, sizeof(string4), "Bun venit la  /%s",textw);
    return SendClientMessage(playerid,0xFFD700AA, string4);
    }
    SetPlayerPos(playerid,x,y,z);
    format(string3, sizeof(string3), "%s sa dus la /%s",pn, text);
    SendClientMessageToAll(0xFFD700AA, string3);
    format(string4, sizeof(string4), "Bun venit la  /%s",textw);
    SendClientMessage(playerid,0xFFD700AA, string4);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sl", cmdtext, true, 10) == 0)
    {
    TelePos(playerid,"sl","Stunt Land",-2453.7859,1444.5114,5.1977);
    return 1;
    }
    if (strcmp("/sl2", cmdtext, true, 10) == 0)
    {
    TelePos(playerid,"sl2","Stunt Land",-1180.7446,-1059.5511,128.7267);
    return 1;
    }



return 0;
}

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.