[Ajuda] Radons Spawn Deu Warnigs Mais Funfo Alguem Ajuda a Tira Os Warnings?
#1

Aqui Gente Esses Sгo Os Warnings
Quote:

C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 217: loose indentation
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\joao marcos\Desktop\Servidor\gamemodes\tss.pwn(57) : warning 202: number of arguments does not match definition

PHP код:
#include <a_samp> //include principal nunca retirar
new Float:RandomSpawn[][11] =
{
    
// Posiзхes, (X, Y, Z e Вngulo Enfrentando)
    
{2034.9502,1008.0985,10.8203,266.7892}, //lv1
    
{2085.6843,867.1085,6.9544,95.2108}, //lv2
    
{2285.8066,606.6849,10.8203,0.0058}, //lv3
    
{2179.8132,1117.5046,12.6484,54.9711}, //lv4
    
{1953.1372,1343.9331,15.3746,268.0314}, //lv5
    
{1995.3676,1668.4370,22.7734,276.9090}, //lv6
    
{2241.8218,2433.2520,10.8203,343.0994}, //lv7
    
{-2080.4690,-2455.4199,30.6250,317.9999}, //lv8
    
{2615.2366,1823.2910,10.8203,85.8127}, //lv9
    
{2579.1167,2306.4714,17.8222,179.6309//lv10
};
public 
OnGameModeInit()
{
    
SetGameModeText("Criando Do 0");//Nome Do Game Mode
    
UsePlayerPedAnims();//Faz as Skin correr igual o Cj
    
return 1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
new 
rand random(sizeof(RandomSpawn));
    
// SetPlayerPos para os dados aleatуrios de desova
    
SetPlayerPos(playeridRandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], RandomSpawn[rand][4], RandomSpawn[rand][5], RandomSpawn[rand][6], RandomSpawn[rand][7], RandomSpawn[rand][8], RandomSpawn[rand][9]);
    
// SetPlayerFacingAngle  para os dados aleatуrios angulares voltados
    
SetPlayerFacingAngle(playeridRandomSpawn[rand][3]);
    return 
1;

Reply
#2

Qual й a linha 57?
Reply
#3

SetPlayerPos, usa-se 4 parвmetros apenas.

Use uma variavel+random.
Reply
#4

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
SetPlayerPos, usa-se 4 parвmetros apenas.

Use uma variavel+random.
Me Ensina como??
Reply
#5

Quote:
Originally Posted by joaosvrenegado
Посмотреть сообщение
Me Ensina como??
Clique aqui .
Reply
#6

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
foi esse tutorial que eu usei fiz certinho tudo mais ainda nao sei o erro o.O
Reply
#7

1° Topo do gm

Код:
#pragma tabsize 0
Depois
Troque
Код:
    // Posiзхes, (X, Y, Z e Вngulo Enfrentando)
    {2034.9502,1008.0985,10.8203}, //lv1
    {2085.6843,867.1085,6.9544}, //lv2
    {2285.8066,606.6849,10.8203}, //lv3
    {2179.8132,1117.5046,12.6484}, //lv4
    {1953.1372,1343.9331,15.3746}, //lv5
    {1995.3676,1668.4370,22.7734}, //lv6
    {2241.8218,2433.2520,10.8203}, //lv7
    {-2080.4690,-2455.4199,30.6250}, //lv8
    {2615.2366,1823.2910,10.8203}, //lv9
    {2579.1167,2306.4714,17.8222} //lv10
Reply
#8

OMG!

pawn Код:
new rand = random(sizeof(RandomSpawn));

    // SetPlayerPos para os dados aleatуrios de desova
    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);

    // SetPlayerFacingAngle  para os dados aleatуrios angulares voltados
    SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
simples

coloque sу isso!
Reply
#9

Quote:
Originally Posted by joaosvrenegado
Посмотреть сообщение
foi esse tutorial que eu usei fiz certinho tudo mais ainda nao sei o erro o.O
Segue o exemplo, nгo mexe mais em nada.

Sу mude as coordenadas.

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
1° Topo do gm

Код:
#pragma tabsize 0
Depois
Troque
Код:
    // Posiзхes, (X, Y, Z e Вngulo Enfrentando)
    {2034.9502,1008.0985,10.8203}, //lv1
    {2085.6843,867.1085,6.9544}, //lv2
    {2285.8066,606.6849,10.8203}, //lv3
    {2179.8132,1117.5046,12.6484}, //lv4
    {1953.1372,1343.9331,15.3746}, //lv5
    {1995.3676,1668.4370,22.7734}, //lv6
    {2241.8218,2433.2520,10.8203}, //lv7
    {-2080.4690,-2455.4199,30.6250}, //lv8
    {2615.2366,1823.2910,10.8203}, //lv9
    {2579.1167,2306.4714,17.8222} //lv10
Fala merda nгo. --'

Quote:
Originally Posted by SkyX
Посмотреть сообщение
OMG!

pawn Код:
new rand = random(sizeof(RandomSpawn));

    // SetPlayerPos para os dados aleatуrios de desova
    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);

    // SetPlayerFacingAngle  para os dados aleatуrios angulares voltados
    SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
simples

coloque sу isso!
Vai dar loose, so apertar TAB no: new rand = random(sizeof(RandomSpawn));
Reply
#10

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
1° Topo do gm

Код:
#pragma tabsize 0
Depois
Troque
Код:
    // Posiзхes, (X, Y, Z e Вngulo Enfrentando)
    {2034.9502,1008.0985,10.8203}, //lv1
    {2085.6843,867.1085,6.9544}, //lv2
    {2285.8066,606.6849,10.8203}, //lv3
    {2179.8132,1117.5046,12.6484}, //lv4
    {1953.1372,1343.9331,15.3746}, //lv5
    {1995.3676,1668.4370,22.7734}, //lv6
    {2241.8218,2433.2520,10.8203}, //lv7
    {-2080.4690,-2455.4199,30.6250}, //lv8
    {2615.2366,1823.2910,10.8203}, //lv9
    {2579.1167,2306.4714,17.8222} //lv10
Tiro alguns erros
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)