19.12.2014, 22:25
BOM GALERA QUERIA SABER PORQUE OS ERROS TOU CRIANDO UMA FS COM VARIAS FUNЗХES DESCULPE-ME POR CRIAR MAIS UM TУPICO POR CAUSA DE ERROS MAIS SOU NOVATO 1000 DESCULPAS :/
ERRORS
pawn Код:
/* Eae pessoal tudo blz??
bom essa filterscript foi criada por franklin_qaeda :D espero que a FS te ajude em algumas coisas
acompanhe as atualizaзхes na SA-MP FORЪM :D
v0.1
*/
//VARIAVEIS FILTERSCRIPT
#include <a_samp>
#include sscanf2
#include dof2
#include zcmd
// FIM VARIAVEIS
// STRINGS
new Cachorro[ ] [] =
{
"[BpL] Franklin",
"[BpL] FILTERSCRIPT"
};
// COMEЗANDO A FILTERSCRIPT
public OnFilterScriptInit()
{
print("-FILTER SCRIPT CRIADA POR FRANKLIN- INICIADA");
return 1;
}
public OnFilterScriptExit()
{
print("-FILTERSCRIPT CRIADA POR FRANKLIN- UNLOADED");
return 1;
}
public OnPlayerConnect(playerid)
{
new string[128];
new Nome[24];
GetPlayerName(playerid, Nome, 24);
new Dia,Mes,Ano,Hora,Minuto,Segundo;
format(string, sizeof(string),"Jogador: %s Entrou no servidor. Data:[%d/%d/%d/] Hora:[%d/%d/%d]",Nome, Dia,Mes,Ano, Hora, Minuto,Segundo);
SendClientMessageToAll(0xFFB400FF, string);
return 1;
}
// quando o player desconecta do servidor :)
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(0xFFB400FF, "Alguem desconectou");
return 1;
}
// comeзando a area de comandos
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/salario", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFFB400FF, "[BpL] Todos player onlines receberam salбrio do mes ");
GivePlayerMoney(playerid, 5000);
new rand = random(sizeof(Cachorro));
new string[128];
format(string, sizeof(string),"[BpL] Todos player onlines receberam salбrio do mes ", Cachorro[rand]);
SendClientMessage(playerid, 0xFFB400FF,string);
return 1;
}
return 0;
}
CMD:resetmoney(playerid,params[]) {
ResetPlayerMoney(playerid);
new id=strval(params);
if(!strlen(params) || !IsNumeric(params)) {
SendClientMessage(playerid,0xFFB400FF,"|INFO| /resetmoney [playerid]");
}
else if(!IsPlayerConnected(id))
{
return SendClientMessage(playerid,0xFFB400FF,"Esse player nгo й um ativo");
}
else if(IsPlayerConnected(id)){
printf("ID: %d",id);
}
return 0;
}
Код:
C:\Users\Tecnoplay\Desktop\GAMEMODES\Brasil Play Legends D - Cуpia\filterscripts\gmedo.pwn(65) : error 017: undefined symbol "IsNumeric" C:\Users\Tecnoplay\Desktop\GAMEMODES\Brasil Play Legends D - Cуpia\filterscripts\gmedo.pwn(72) : warning 217: loose indentation C:\Users\Tecnoplay\Desktop\GAMEMODES\Brasil Play Legends D - Cуpia\filterscripts\gmedo.pwn(76) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.