[Ajuda] Erro No CMD - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro No CMD (
/showthread.php?tid=500209)
Erro No CMD -
Devasting - 12.03.2014
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;}
Re: Erro No CMD -
Input - 12.03.2014
IsPlayerSpawned << Existe essa funзгo no seu gamemode?
Re: Erro No CMD -
Devasting - 12.03.2014
Quote:
Originally Posted by Input
IsPlayerSpawned << Existe essa funзгo no seu gamemode?
|
nгo tem,posso por qual funзгo no lugar dessa?
Re: Erro No CMD -
Cor3y - 12.03.2014
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.
Re: Erro No CMD -
Diogo123 - 12.03.2014
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;
}
Re: Erro No CMD -
Devasting - 12.03.2014
Quote:
Originally Posted by Diogo123
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
Re: Erro No CMD -
Diogo123 - 12.03.2014
No final da gm ^~^