SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 02/10/2009, 02:09 PM   #1
Eazy_E214
Little Clucker
 
Join Date: Aug 2008
Posts: 38
Reputation: 0
Default Help with dm Arena

Code:
if (strcmp(cmdtext, "/dm1", true) == 0) {
  if(k[playerid] == true) { SendClientMessage(playerid,0xFF0000AA,"Du kannst keine Befehle im DM nutzen"); } else {
	k[playerid] = true;
  new iRandom = random(8);
  SetPlayerPos(playerid, RandomSpawn[iRandom][0], RandomSpawn[iRandom][1],
	RandomSpawn[iRandom][2]);
	SetPlayerFacingAngle(playerid, RandomSpawn[iRandom][3]);
 	ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,26,5000); GivePlayerWeapon(playerid,28,5000); GivePlayerWeapon(playerid,31,5000);
 	SetPlayerArmour(playerid,100); SetPlayerHealth(playerid,100);
  new string[256], name[MAX_PLAYER_NAME];
 	GetPlayerName(playerid, name, sizeof(name));
 	format(string, sizeof(string), "%s hat die Deadmatch Arena betreten!", name);
 	SendClientMessageToAll(AQUA, string); }
 return 1;
}

if (strcmp(cmdtext, "/dmexit", true) == 0) {
  	if(k[playerid] == false) { SendClientMessage(playerid,RED,"Du bist nicht in der Deadmatch Arena"); }
  	else if(k[playerid] == true) { k[playerid] = false; SetPlayerHealth(playerid,0); SendClientMessage(playerid,BLUE,"Du hast die Deadmatch Arena verlassen"); }
  	return 1;
	}
Code:
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Sa-Mp 0.3a rc6 rc7\Rc_8 serverrrrrr\gamemodes\Stunt,Dm,Race,v,1,0.pwn(208) : error 017: undefined symbol "k"
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Sa-Mp 0.3a rc6 rc7\Rc_8 serverrrrrr\gamemodes\Stunt,Dm,Race,v,1,0.pwn(208) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Sa-Mp 0.3a rc6 rc7\Rc_8 serverrrrrr\gamemodes\Stunt,Dm,Race,v,1,0.pwn(208) : error 001: expected token: ";", but found "]"
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Sa-Mp 0.3a rc6 rc7\Rc_8 serverrrrrr\gamemodes\Stunt,Dm,Race,v,1,0.pwn(208) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Sa-Mp 0.3a rc6 rc7\Rc_8 serverrrrrr\gamemodes\Stunt,Dm,Race,v,1,0.pwn(208) : fatal error 107: too many error messages on one line
?? help me please

Eazy_E214 is offline  
Old 02/10/2009, 02:45 PM   #2
Eazy_E214
Little Clucker
 
Join Date: Aug 2008
Posts: 38
Reputation: 0
Default Re: Help with dm Arena

help pls
Eazy_E214 is offline  
Old 02/10/2009, 02:45 PM   #3
brett7
Gangsta
 
brett7's Avatar
 
Join Date: Nov 2007
Location: UK, dun kno!!
Posts: 738
Reputation: 14
Default Re: Help with dm Arena

new k[playerid] = false;

put that some where or change it to true or what ever you want
brett7 is offline  
Old 02/10/2009, 04:55 PM   #4
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Posts: 7,035
Reputation: 103
Default Re: Help with dm Arena

Quote:
Originally Posted by brett7
new k[playerid] = false;
Wrong of course. You can't define variable like that.

This is correct:
pawn Code:
new k[MAX_PLAYERS];
Correlli is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/arena rand Nikid Русский/Russian 1 19/06/2010 10:35 AM
[HELP]Arena for 2 players!!!! J. Help Archive 1 10/06/2010 07:48 PM
[Разработка] LS Arena 1 hemen Русский/Russian 18 24/04/2010 08:02 AM
[AJUDA] ARENA judson diogo Portuguкs/Portuguese 5 18/03/2010 02:21 PM
ID? Arena with grass? urkiefly101 Help Archive 5 22/08/2009 12:16 PM


All times are GMT. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.