also ich hab das jetzt so gemacht:
ocmd:getgun(playerid, params[])
{
new pID, string[164], weapons[13][2];
if(isPlayerInFrakt(playerid,1)||isPlayerInFrakt(playerid,2)||isPlayerInFrakt(playerid,3)) //1408
if(sscanf(params,"u",pID))return SendClientMessage(playerid,COLOR_BLAU,"Benutze: /getgun [Spieler/ID]");
{
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 1) //schlagring
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 2) //golfschläger
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 3) //schlagstock
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 4) //messer
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 5) //baseballschläger
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 6) //schaufel
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 8) //katana
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 9) //kettensäge
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerWeapon(playerid) == 16) //granate
{
GetPlayerWeaponData(pID, i, weapons[i][0], weapons[i][1]);
format(string,sizeof(string),"Waffen von %s: SLOT %d|Munition:%d Schuss",SpielerName(pID),weapons[i][0],weapons[i][1]);
SendClientMessage(playerid,0xFFFFFFAA,string);
}
return 1;
}
habe aber 12 errors:
Zitat
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(466) : error 004: function "UpdateDate" is not implemented
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(480) : error 004: function "UpdateTime" is not implemented
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1376) : error 017: undefined symbol "SpielerSpeichern"
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1408) : error 017: undefined symbol "isPlayerInFrakt"
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1409) : error 017: undefined symbol "sscanf"
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1409) : error 079: inconsistent return types (array & non-array)
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1443) : error 017: undefined symbol "SpielerName"
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1446) : error 079: inconsistent return types (array & non-array)
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1450) : error 029: invalid expression, assumed zero
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1450) : error 017: undefined symbol "ocmd_test"
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1450) : error 029: invalid expression, assumed zero
C:\Users\Marco\Desktop\Marcos Server\gamemodes\MarcosServerTM.pwn(1450) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
Alles anzeigen
also die errors sind nur dann da wenn ich den befehl drin habe, und die sachen sind alle defieniert...