Jump to content
  • 0

Ajutor va rog :( Din nou :D


Question

Posted

Deci imi apare cand dau F5 asa  : E:\123456789\samp\gamemodes\RO.pwn(108) : warning 209: function "OnPlayerCommandText" should return a value..si nu stiu la ce se refera

Comanda care am bagat-o a fost

public OnPlayerCommandText(playerid, cmdtext[])

if (strcmp(cmdtext, "/flip", true)==0) {

                new VehicleID, Float:X, Float:Y, Float:Z;

                GetPlayerPos(playerid, X, Y, Z);

                VehicleID = GetPlayerVehicleID(playerid);

                SetVehiclePos(VehicleID, X, Y, Z);

                SetVehicleZAngle(VehicleID, 0);

                SendClientMessage(playerid, 0x336699FF,"Vehicle Fliped!");

                return 1;

                }

Va rog ajutor  :((

2 answers to this question

Recommended Posts

Posted

Incearca asa:

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/flip", true)==0)
    {
       new VehicleID, Float:X, Float:Y, Float:Z;
       GetPlayerPos(playerid, X, Y, Z);
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID, X, Y, Z);
       SetVehicleZAngle(VehicleID, 0);
       SendClientMessage(playerid, 0x336699FF,"Vehicle Fliped!");
       return 1;
    }
    return 0;
}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.