Moin^^ in mom erhalte ich fehler bei dem neuen DM mode um zu porten.
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(296) : warning 219: local variable "cmdtext" shadows a variable at a preceding level
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(398) : error 010: invalid function or declaration
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(412) : error 010: invalid function or declaration
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(415) : error 010: invalid function or declaration
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(429) : error 010: invalid function or declaration
C:\Users\Andre\Desktop\Samp\gamemodes\lvdm.pwn(1160) : warning 203: symbol is never used: "cmdtext"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
hier die Code:
if(strcmp(cmdtext,"/dm",true)==0)
{
IsPlayerInDm[playerid] = 1;
SetPlayerPos(playerid,1358.9202,2117.0469,11.0156);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 999999);
GivePlayerWeapon(playerid, 28, 999999);
GetPlayerName(playerid,name,24);
SendClientMessage(playerid, 0xFF0000FF, "**Dm**");
format(string,sizeof(string),"%s macht jetzt Dm(/dm)",name);
SendClientMessageToAll(0xAAFF00FF,string);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.00);
SetPlayerVirtualWorld(playerid,1);
return 1;
}
if(strcmp(cmdtext,"/dmend",true)==0)
{
IsPlayerInDm[playerid] = 0;
SetPlayerPos(playerid,2490.9143,-1669.0798,13.3359);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 0.00);
GetPlayerName(playerid,name,24);
SendClientMessage(playerid, 0xFF0000FF, "**Dm Ende**");
format(string,sizeof(string),"%s verlässt das Dm(/dmend)",name);
SendClientMessageToAll(0xAAFF00FF,string);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
THx wenn ihr mir helfen könntet!