#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/da", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip");
    SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844);
    SetPlayerInterior(playerid, 0);
	return 1;
	}
  if(strcmp("/teles", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair");
	return 1;
	}
	if(strcmp("/lvair", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport");
    SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203);
    SetPlayerInterior(playerid, 0);
	return 1;
	}
  return 0;
  }
130	if(strcmp("/help", cmdtext, true 5) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Ultimate-Killing is a server with 3 teams/gans, Los Santos, San Fierro and Las Venturas.format teleports type /teles, for the rules type /rules.");
133	return 1;
	}
thats the code,

and here are the errors,

C:\Users\Onno\Documents\da\gamemodes\saa.pwn(130) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(133) : error 010: invalid function or declaration
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/da", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip");
    SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
  if(strcmp("/teles", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair");
    return 1;
    }
    if(strcmp("/lvair", cmdtext, true) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport");
    SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
 
    if(strcmp("/help", cmdtext, true 5) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "Ultimate-Killing is a server with 3 teams/gans, Los Santos, San Fierro and Las Venturas.format teleports type /teles, for the rules type /rules.");
    return 1;
    }
  return 0;
  }
Try this , it should work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)