[Ajuda] error 010: invalid function or declaration
#21

Tente assim:

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/entrar"true) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.01219.0685,-1812.5293,16.593))
        {        
            
SetPlayerInterior(playerid3);
            
SetPlayerVirtualWorld(playerid1);
            
SetPlayerPos(playerid1494.325195,1304.942871,1093.289062);
        }
        if(
IsPlayerInRangeOfPoint(playerid2.0938.0220,1733.2141,8.8516))
        {
            
SetPlayerInterior(playerid3);
            
SetPlayerVirtualWorld(playerid2);
            
SetPlayerPos(playerid1494.325195,1304.942871,1093.289062);
        }
    }

    if(
strcmp(cmdtext"/sair"true) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.01494.325195,1304.942871,1093.289062) && GetPlayerVirtualWorld(playerid) == 1)
        {
            
SetPlayerInterior(playerid0);
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerPos(playerid1219.0685,-1812.5293,16.593);
        }
        if(
IsPlayerInRangeOfPoint(playerid2.01494.325195,1304.942871,1093.289062) && GetPlayerVirtualWorld(playerid) == 2)
        {
            
SetPlayerInterior(playerid0);
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerPos(playerid938.0220,1733.2141,8.8516);
        }
    }
    return 
1;

Reply
#22

Consegui arrumar o problema, Obrigado por tudo funcionou tudo certinho aqui obrigado a todos que vieram ah esse tуpico
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)