[Ajuda] should return a value
#1

Olб, tem um sistema de pichaзгo na minha gamemode, mas quando eu compilo da o seguinte warning:
(36488 ) : warning 209: function "Streamer_OnPlayerEditObject" should return a value
(36502) : warning 209: function "Streamer_OnPlayerEditObject" should return a value

PHP код:
public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    new 
Float:oldXFloat:oldYFloat:oldZ,
    
Float:oldRotXFloat:oldRotYFloat:oldRotZ;
    
GetObjectPos(GrafiteJFS[playerid], oldXoldYoldZ);
    
GetObjectRot(GrafiteJFS[playerid], oldRotXoldRotYoldRotZ);
    if(!
playerobject)
    {
        if(!
IsValidObject(GrafiteJFS[playerid])) return; //LINHA DO 1o WARNING
        
MoveObject(GrafiteJFS[playerid], fXfYfZ10.0fRotXfRotYfRotZ);
    }
     if(
response == EDIT_RESPONSE_FINAL)
      {
         new 
string[64];
        
format(stringsizeof(string), "Criada Por: %s"getPName(playerid));
        
Player[playerid][LabelPic] = Create3DTextLabel(stringCOR_AMARELOfXfYfZ-0.210.00);
        
SendClientMessage(playerid,COR_AZULCLARO,"<!> {ffffff}Use o Spray por 5 segundos para finalizar.");
        
SendClientMessage(playerid,COR_AZULCLARO,"<!> {ffffff}Ao final, nгo utilize esse spray para nada!");
        
GivePlayerWeapon(playerid415000);
    }
//LINHA DO 2o WARNING 
Reply


Messages In This Thread
should return a value - by cristiannh2 - 28.05.2018, 07:06
Re: should return a value - by Ermanhaut - 28.05.2018, 07:15
Re: should return a value - by cristiannh2 - 28.05.2018, 08:16
Re: should return a value - by cristiannh2 - 28.05.2018, 08:22
Re: should return a value - by AutoMatic2 - 28.05.2018, 14:03
Re: should return a value - by [BOPE]Seu._.Madruga - 28.05.2018, 15:26

Forum Jump:


Users browsing this thread: 2 Guest(s)