hier erstmal der CMD:
if(!strcmp(strget(cmdtext,0),"/kick")) {
if(IsPlayerAdmin(playerid) {
new typ=strval(strget(cmdtext,1));
if(IsPlayerConnected(typ)) {
new pName[MAX_PLAYER_NAME], s[100], z, st=strlen(cmdtext), i, name[16];
for(; i<st; i++) {
if(cmdtext[i]==' ') {
z++;
if(z==2) { z=i+1; i=st; }}}
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(typ,name,sizeof(name));
format(s,sizeof(s),"Admin: %s has %s kicked!",pName,name);
SendClientMessageToAll(COLOR_WHITE,s);
Kick(typ); }}
return 1;
}
dann vorher nochg ne frage: wie erkennt man solche errors? die scheinen doch simpel zu sein oder nicht?
hier die errors:
D:\Programme\SAMP Server\gamemodes\BIGGANGDM.pwn(429) : warning 217: loose indentation
D:\Programme\SAMP Server\gamemodes\BIGGANGDM.pwn(430) : error 001: expected token: ")", but found "{"
D:\Programme\SAMP Server\gamemodes\BIGGANGDM.pwn(446) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
also hier DIE Zeile vom error:
if(IsPlayerAdmin(playerid) {