[AJUDA]Alguem Pode Tirar Os Warnings?
#1

to fazendo meu gamemode deathmatch, ele tem 11 warnings alguem pode adicionar meu skype e tirar os warnings ou me ensinar a tiralos? skype:lucas.rawr2
Reply
#2

Mostre-os ...
Reply
#3

Код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(177) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(179) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(249) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(396) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Код:
//-------------------------Pay' Spray---------------------------------------
	if(strcmp(cmdtext,"/ps",true)==0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {
    GameTextForPlayer(playerid,"Bem Vindo A Pay'n Spray",4000,6);
    LinkVehicleToInterior(vehicleid,0);
    SetPlayerInterior(playerid,0);
    return SetVehiclePos(vehicleid,2081.2065,-1831.3055,13.3828,90);
    }
    SetPlayerPos(playerid,2081.2065,-1831.3055,13.3828,90);
    SetPlayerInterior(playerid,0);
    GameTextForPlayer(playerid,"Bem Vindo A Pay'n Spray",4000,6);
    return 1;
    }
Reply
#4

pawn Код:
if(strcmp(cmdtext,"/ps",true)==0)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        new State = GetPlayerState(playerid);
        if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
        {
            GameTextForPlayer(playerid,"Bem Vindo A Pay'n Spray",4000,6);
            LinkVehicleToInterior(vehicleid,0);
            SetPlayerInterior(playerid,0);
            return SetVehiclePos(vehicleid,2081.2065,-1831.3055,13.3828);
        }
        SetPlayerPos(playerid,2081.2065,-1831.3055,13.3828);
        SetPlayerInterior(playerid,0);
        GameTextForPlayer(playerid,"Bem Vindo A Pay'n Spray",4000,6);
        return 1;
    }
Reply
#5

Код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(260) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ServidordeTestes.pwn(407) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Код:
    //---------------------------------[AJUDA]----------------------------------
    if (strcmp ("/ajuda", cmdtext, true, 10) == 0)
    {
	SendClientMessage(playerid, COR_VERMELHOE, "__________________________ AJUDA __________________________");
	SendClientMessage(playerid, COR_CINZA, "- Gamemode para testes, feito por Lucas Rawr.");
	SendClientMessage(playerid, COR_VERMELHO, "- Digite </equipar> para se equipar.");
	SendClientMessage(playerid, COR_CINZA, "- Digite </comandos> para saber sobre mais comandos.");
	SendClientMessage(playerid, COR_VERMELHO, "- Digite </creditos> para ver os crйditos do gamemode.");
 	SendClientMessage(playerid, COR_CINZA, "- Digite </objetivo> para ver o objetivo do gamemode.");
	SendClientMessage(playerid, COR_VERMELHOE, "ЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇ");
	}
Reply
#6

pawn Код:
if (strcmp ("/ajuda", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, COR_VERMELHOE, "__________________________ AJUDA __________________________");
    SendClientMessage(playerid, COR_CINZA, "- Gamemode para testes, feito por Lucas Rawr.");
    SendClientMessage(playerid, COR_VERMELHO, "- Digite </equipar> para se equipar.");
    SendClientMessage(playerid, COR_CINZA, "- Digite </comandos> para saber sobre mais comandos.");
    SendClientMessage(playerid, COR_VERMELHO, "- Digite </creditos> para ver os crйditos do gamemode.");
    SendClientMessage(playerid, COR_CINZA, "- Digite </objetivo> para ver o objetivo do gamemode.");
    SendClientMessage(playerid, COR_VERMELHOE, "ЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇ");
        return 1;
    }
Reply
#7

qual a function para dar play em uma musica tipo audio stream?
Reply
#8

pawn Код:
PlayAudioStreamForPlayer
Reply
#9

C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(510) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(715) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(862) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#10

Quote:
Originally Posted by Jake_Dunlapp
Посмотреть сообщение
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(510) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(715) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\gamemodes\ ServidordeTestes.pwn(862) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Atualize seu SAMP para 0.3d ou 0.3e

Coloque isso no topo do GM
pawn Код:
native PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
native StopAudioStreamForPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)