[AJUDA] RADAR
#1

Galera Por Favor Aonde Esta o erro -' e urgente ;( Ganha +Rep




pawn Код:
public Radar(playerid){
new Float:X, Float:Y, Float:Z, Float:Speed;
GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);
new velocid;
velocid = floatround(Speed, floatround_floor);
if(IsPlayerInCircle(playerid, 1209.5920,-1712.2078, 20) || IsPlayerInCircle(playerid, 1300.1948,-1543.8530, 20) || IsPlayerInCircle(playerid, -138.9767,-1238.2048, 20) ||/**/ IsPlayerInCircle(playerid, 1788.2158,819.5767, 20) ||/**/ IsPlayerInCircle(playerid, 433.4925,596.7650, 20)
||/**/ IsPlayerInCircle(playerid, -138.7257,477.3284, 20) ||/**/ IsPlayerInCircle(playerid, -1659.3097,563.5499, 20) ||/**/ IsPlayerInCircle(playerid, -1647.4869,553.3688, 20) ||/**/ IsPlayerInCircle(playerid, -2688.9597,1445.8730, 20) ||/**/ IsPlayerInCircle(playerid, -2673.3538,1445.4196, 20)
||/**/ IsPlayerInCircle(playerid, -2273.9414,2676.7244, 20) ||/**/ IsPlayerInCircle(playerid, -2274.0522,2639.5820, 20) ||/**/ IsPlayerInCircle(playerid, 1806.4297,820.2419, 20) ||/**/ IsPlayerInCircle(playerid, 1696.0487,-489.0305, 20) ||/**/ IsPlayerInCircle(playerid, 1709.9498,-486.3886, 20) ||/**/ IsPlayerInCircle(playerid, 1593.8607,-1453.6747, 20)
||/**/ IsPlayerInCircle(playerid, 1610.3528,-1454.7465, 20) ||/**/ IsPlayerInCircle(playerid, 1405.5986,-939.9647, 20) ||/**/ IsPlayerInCircle(playerid, 1315.4125,-1544.7103, 20) ||/**/ IsPlayerInCircle(playerid, -1220.0536,-778.5842, 20)){
new string2[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
if(velocid > 105){
if(aradar[playerid] == 0){
SendClientMessage(playerid,verdel,"~> Radar <~");
format(string2, 256(string2),"[RADAR]Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,0xF47A00AA,string2);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Vocк foi pego(a) no radar,por estar acima do limite permitido(105 KM/h)");
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Portanto,vocк foi multado em R$500. Para pagar vб atй a DP!");
format(string2, 256(string2),"(INFO)No total,vocк foi pego(a) %d vez(es)...",dini_Int(filena(playerid),"Multas")+1);
SendClientMessage(playerid,0xFFFFFFAA,string2);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Ao completar 6 multas vocк perdera sua habilitaзao terrestre e pagarб R$5.000!");
dini_IntSet(filena(playerid), "Multas",dini_Int(filena(playerid),"Multas")+1);
if(dini_Int(filena(playerid),"Multas") >= 6){
dini_IntSet(filena(playerid),"HabTerrestre",0);
dini_IntSet(filena(playerid),"SaldoBancario",dini_Int(filena(playerid),"SaldoBancario")-5000);
GivePlayerGrana(playerid, -5000);
dini_IntSet(filena(playerid),"Multas",0);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Vocк completou 6 multas sem pagar, perdeu sua habilitaзгo e pagou R$5.000!");
}
SendClientMessage(playerid,verdel,"~> Radar <~");
aradar[playerid] = 1;
}
} else {
if(aradar[playerid] == 0){
format(string2, 256,"[RADAR]Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,0xF47A00AA,string2);
aradar[playerid] = 1;
}
}
}
} else aradar[playerid] = 0;
}
Reply
#2

PF e Super Urgente
Reply
#3

pi pi pi lbb detected '-'
Reply
#4

Quote:
Originally Posted by [NC]BlackSky
Посмотреть сообщение
pi pi pi lbb detected '-'
Algo Contra ?
Reply
#5

Qual o maldito erro?
Reply
#6

Quote:
Originally Posted by Hard`
Посмотреть сообщение
Qual o maldito erro?
: error 035: argument type mismatch (argument 1)
: error 029: invalid expression, assumed zero
: warning 215: expression has no effect
: warning 215: expression has no effect
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
Reply
#7

Se nгo fosse te pedir muito, vocк poderia indicar/postar a linha exata do erro?
Reply
#8

Quote:
Originally Posted by Hard`
Посмотреть сообщение
Se nгo fosse te pedir muito, vocк poderia indicar/postar a linha exata do erro?
Essa ea Linha do Erro '-' acima
Reply
#9

A LINHA, A LINHA DO ERRO, A LINHA, NГO O ERRO, A LINHA DE CADA ERRO
Reply
#10

Quote:
Originally Posted by Hard`
Посмотреть сообщение
A LINHA, A LINHA DO ERRO, A LINHA, NГO O ERRO, A LINHA DE CADA ERRO
pawn Код:
if(checknome == checkdp){
SendClientMessage(playerid, verdel,"~> Departamento de Policia <~");
new string2[256];
format(string2, 256,"Vocк tem %d multas no total de R$%d /pagarmultas para paga-las",dini_Int(filena(playerid),"Multas"),dini_Int(filena(playerid),"Multas")*500);
SendClientMessage(playerid,0xFFFFFFAA,string2);
}



IsPlayerInCircle(playerid,Float:x,Float:y,radius)
{
if(GetPlayerDistanceToPoint2(playerid,Float:x,Float:y) < radius)
{
return 1;
}
return 0;
}


GetPlayerDistanceToPoint2(playerid,Float:x,Float:y)
{
new Float:x1,Float:y1,Float:z1; GetPlayerPos(playerid,x1,y1,z1);
new Float:tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+
floatpower(floatabs(floatsub(y,y1)),2));
return floatround(tmpdis);
}
stock filena(playerid){
new names[MAX_PLAYER_NAME];
GetPlayerName(playerid, names, MAX_PLAYER_NAME);
//new string[256];
//format(string,sizeof string,"/Contas/%s.ini", names);
format(file, sizeof(file), PASTA_CONTAS, names);
return file;
}


GetPlayerDistanceToPoint2(playerid,Float:x,Float:y)
{
new Float:x1,Float:y1,Float:z1; GetPlayerPos(playerid,x1,y1,z1);
new Float:tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+
floatpower(floatabs(floatsub(y,y1)),2));
return floatround(tmpdis);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)