[Ajuda] Erro No CMD
#1

pawn Code:
C:\Users\Re\Desktop\GameMode\gamemodes\SF.pwn(2164) : error 017: undefined symbol "IsPlayerSpawned"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

linha:

pawn Code:
if (strcmp("/carros", cmdtext, true) == 0 || strcmp("/cs", cmdtext, true) == 0 || strcmp("/estacionamento", cmdtext, true) == 0  || strcmp("/v", cmdtext, true) == 0) {
    if(!IsPlayerSpawned(playerid)){return 1;}
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){return SendClientMessage(playerid, COLOR_RED, "[ERRO]: Vocк jб tem um veнculo!");}
    new allvehicles[] = "1\tAvioes\n2\tHelicopteros\n3\tMotos\n4\tConvesiveis\n5\tIndustriais\n6\tLowriders\n7\tOffRoad\n8\tServiзos Publicos\n9\tSaloons\n10\tEsportivos\n11\tPeruas\n12\tBarcos\n13\tVeiculos Unicos\n14\tVeiculos RC\n15\tTrailers";
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Lista de Veiculos:",allvehicles,"Selecionar","Voltar");
    return 1;}
Reply
#2

IsPlayerSpawned << Existe essa funзгo no seu gamemode?
Reply
#3

Quote:
Originally Posted by Input
View Post
IsPlayerSpawned << Existe essa funзгo no seu gamemode?
nгo tem,posso por qual funзгo no lugar dessa?
Reply
#4

O sнmbolo "IsPlayerSpawned" nгo foi definido. Ou essa funзгo nгo existe no SA:MP ou ela nгo foi declarada em seu gamemode.
Reply
#5

pawn Code:
IsPlayerSpawned(playerid)
{
    new statex = GetPlayerState(playerid);
    if (statex != PLAYER_STATE_NONE && statex != PLAYER_STATE_WASTED && statex != PLAYER_STATE_SPAWNED)
    {
        if (statex != PLAYER_STATE_SPECTATING)
        {
            return true;
        }
    }
    return false;
}
Reply
#6

Quote:
Originally Posted by Diogo123
View Post
pawn Code:
IsPlayerSpawned(playerid)
{
    new statex = GetPlayerState(playerid);
    if (statex != PLAYER_STATE_NONE && statex != PLAYER_STATE_WASTED && statex != PLAYER_STATE_SPAWNED)
    {
        if (statex != PLAYER_STATE_SPECTATING)
        {
            return true;
        }
    }
    return false;
}
onde coloco?sou novo em pawn
Reply
#7

No final da gm ^~^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)