Hallo Leute.
Ich habe einen kleinen Befehl gemacht, der es ermöglicht den Spielern Waffen zu kaufen. (Zusätzliche Funktionen wie: Position, Ammunation-Geld etc wird noch geadded wenns wieder geht)
ocmd:ausruesten(playerid,params[])
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LCN
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Yaku
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Präsident
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//San NEws
{
GivePlayerWeapon(playerid, 41, 2000);
GivePlayerWeapon(playerid, 43, 50);
}
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//GS
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Balas
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//RS
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Vagos
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Aztecas
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)//Rifa
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)//MWR
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)//Terror
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 25, 70);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 30, 200);
}
else if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)//O-Amt
{
GivePlayerWeapon(playerid, 41, 2000);
GivePlayerWeapon(playerid, 24, 70);
}
return 1;
}
Und hier meine Errors:
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59629) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59647) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59652) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59654) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59655) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59656) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59657) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59658) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59660) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59662) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59663) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59664) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59665) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59666) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59668) : error 054: unmatched closing brace ("}")
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59669) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59671) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59672) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59673) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59674) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59675) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59677) : error 054: unmatched closing brace ("}")
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59678) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59680) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59681) : error 021: symbol already defined: "M_GivePlayerWeapon"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59683) : error 054: unmatched closing brace ("}")
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59684) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59686) : warning 203: symbol is never used: "BadWords"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59686) : warning 203: symbol is never used: "M_OnPlayerCommandText"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59686) : warning 203: symbol is never used: "M_OnPlayerDeath"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59686) : warning 203: symbol is never used: "M_OnPlayerStateChange"
C:\Dokumente und Einstellungen\Mirko\Desktop\RSSARGR\gamemodes\Real-Roleplay.pwn(59686) : warning 203: symbol is never used: "M_OnPlayerUpdate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
25 Errors.
Alles anzeigen
Ist der Befehl weg, geht alles!
Ich hoffe mir hilft jemand.