Jump to content
  • 0

Help minigun


Otiy

Question

cum pot sa fac sa mearga acest script de minigun imi da erroare.

if(strcmp(cmdtext, "/minigun", true) == 0)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun");
        ResetPlayerWeapons(playerid);
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro
        SetPlayerFacingAngle(playerid, 100.5574);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GivePlayerWeapon(playerid, 38,9999);
        new string[50];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,18);
        format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name);
        SendClientMessageToAll(0xC2A2DAAA,string);
		return 1;
}

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(1) : error 010: invalid function or declaration

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(5) : error 010: invalid function or declaration

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6) : error 010: invalid function or declaration

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6) : error 010: invalid function or declaration

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6 -- 8) : error 010: invalid function or declaration

C:\Documents and Settings\DexTer\Desktop\RSS\gamemodes\Untitled.pwn(6 -- 8) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

6 Errors.

Link to comment
Share on other sites

baga asa

if(strcmp(cmdtext, "/minigun", true) == 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun");
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro
    SetPlayerFacingAngle(playerid, 100.5574);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    GivePlayerWeapon(playerid, 38,9999);
    new string[50];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,18);
    format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name);
    SendClientMessageToAll(0xC2A2DAAA,string);
    return 1;
    }

Iti va merge am incercat pe server ;)

Link to comment
Share on other sites

Nu ai pus sub OnPlayerCommandText, baga-l in GM sub OnPlayerCommandText, dupa {.

Sau ca FS (cea mai proasta varianta, mai bine in GM):

#include <a_samp>

#define COLOR_ORANGE -1

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext, "/minigun", true) == 0)
   	{
      	SendClientMessage(playerid, COLOR_ORANGE, "Welcome to the Minigun Deathmatch, Available Weapons : Minigun");
        ResetPlayerWeapons(playerid);
      	SetPlayerInterior(playerid,0);
      	SetPlayerPos(playerid, -1425.6670,1490.2557,1.8672); // Military Ship San fierro
        SetPlayerFacingAngle(playerid, 100.5574);
      	SetPlayerHealth(playerid, 100);
      	SetPlayerArmour(playerid, 100);
      	GivePlayerWeapon(playerid, 38,9999);
        new string[50];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,18);
        format(string, sizeof(string), "%s has joined the Minigun DM ( /minigun)",name);
        SendClientMessageToAll(0xC2A2DAAA,string);
      	return 1;
	}
	return 0;
}

Link to comment
Share on other sites

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.