need help
#1

C:\Users\Onno\Documents\da\gamemodes\saa.pwn(136) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(141) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(143) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(145) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(150) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(152) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(157) : error 010: invalid function or declaration

Код:

136if(strcmp("/rules", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "1.No Spam 2.No Racism 3.No Flood");
		SendClientMessage(playerid, 0xFF6600AA, "4.No Cheats 5.No hacks 6.No teleporting to airports of other gangs.");
		SendClientMessage(playerid, 0xFF6600AA, "If you follow these 6 very simple rules, you will don't have any problems.");
141return 1;
}
143  return 0;
  }
145if(strcmp("/lvair", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "San Fierro Airport");
    SetPlayerPos(playerid, -1258.4958,30.7050,14.1484);
    SetPlayerInterior(playerid, 0);
150return 0;
}
152if(strcmp("/lsair", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "San Fierro Airport");
    SetPlayerPos(playerid, 1381.1477,-2429.3738,13.5547);
    SetPlayerInterior(playerid, 0);
157return 0;
}
im getting sick about these commands
Reply
#2

Do you have them under OnPlayerCommandText ?
Reply
#3

Quote:
Originally Posted by dice7
Do you have them under OnPlayerCommandText ?
yes i have them under onplayercommandtext
Reply
#4

Quote:
Originally Posted by PANNA
Quote:
Originally Posted by dice7
Do you have them under OnPlayerCommandText ?
yes i have them under onplayercommandtext
try to delete the number after true at the strcmp(don't forget the ",").
Reply
#5

still got the errors
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/rules", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "1.No Spam 2.No Racism 3.No Flood");
    SendClientMessage(playerid, 0xFF6600AA, "4.No Cheats 5.No hacks 6.No teleporting to airports of other gangs.");
    SendClientMessage(playerid, 0xFF6600AA, "If you follow these 6 very simple rules, you will don't have any problems.");
    return 1;
  }
  if(strcmp("/lvair", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "San Fierro Airport");
    SetPlayerPos(playerid, -1258.4958,30.7050,14.1484);
    SetPlayerInterior(playerid, 0);
    return 1;
  }
  if(strcmp("/lsair", cmdtext, true, 6) == 0)
  {
    SendClientMessage(playerid, 0xFF6600AA, "San Fierro Airport");
    SetPlayerPos(playerid, 1381.1477,-2429.3738,13.5547);
    SetPlayerInterior(playerid, 0);
    return 1;
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)