09.07.2010, 15:40
I tried it
Super bedankt man
I am sorry maybe it is noob action or something but I now got this:
(i have removed some news because I all ready had them
I get now these errors:
D:\joram server\gamemodes\Dutchlife.pwn(146 : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1469) : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1470) : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 028: invalid subscript (not an array or too many subscripts): "team"
D:\joram server\gamemodes\Dutchlife.pwn(1472) : warning 215: expression has no effect
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Dutchlife.pwn(1472) : fatal error 107: too many error messages on one line
1468-1470 are these lines with if strcm... grove
1472 is the line of team(giveplayerid) = teamid
Super bedankt man
I am sorry maybe it is noob action or something but I now got this:
Код:
if(!strcmp(cmd, "/setteam", true)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "Gebruik: /setteam [playerid] [team]"); tmp2 = strtok(cmdtext, idx); if(!strlen(tmp2)) return SendClientMessage(playerid, 0xFF0000AA, "Gebruik: /setteam [playerid] [team]"); new team = strval(tmp2); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, "Die speler is niet online!"); new teamid; if(!strcmp(team, "grove", true)) { teamid = TEAM_GROVE; } if(!strcmp(team,"ballas",true)) { teamid = TEAM_BALLAS; } if(!strcmp(team, "sapd", true)) { teamid = TEAM_SAPD; } { team[giveplayerid] = teamid SendClientMessage(playerid, 0xFF0000AA, "Team gezet!"); } else { SendClientMessage(playerid, 0xFF0000AA, "Dat team bestaat niet!"); } return 1; }
I get now these errors:
D:\joram server\gamemodes\Dutchlife.pwn(146 : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1469) : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1470) : error 035: argument type mismatch (argument 1)
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 028: invalid subscript (not an array or too many subscripts): "team"
D:\joram server\gamemodes\Dutchlife.pwn(1472) : warning 215: expression has no effect
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Dutchlife.pwn(1472) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Dutchlife.pwn(1472) : fatal error 107: too many error messages on one line
1468-1470 are these lines with if strcm... grove
1472 is the line of team(giveplayerid) = teamid