Ich habe mir das LSPD und das FBI gescriptet, aber wenn ich das mit dem Frakktions Spawn bei "OnPlayerConnect" mache,
kommen 5 Errors und 2 Warnings die ich nicht verstehe.
Hoffe mir kann jemand weiterhelfen.
Errors :
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1237) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1237) : warning 215: expression has no effect
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1238) : error 014: invalid statement; not in switch
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1238) : warning 215: expression has no effect
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1238) : error 001: expected token: ";", but found ":"
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1238) : error 029: invalid expression, assumed zero
C:\Users\Richard\Desktop\NYCR\gamemodes\NYCR.pwn(1238) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Error Zeilen:
public OnPlayerSpawn(playerid)
{
//________________________FraktionSpawn________________________
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:SetPlayerPos(playerid,lspdspawn);SetPlayerInterior(playerid,3);SetPlayerColor(playerid,Hellblau);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,31,50);SetPlayerSkin(playerid,266);
case 1:SetPlayerPos(playerid,fbispawn);SetPlayerInterior(playerid,10);SetPlayerColor(playerid,Blau);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,31,50);SetPlayerSkin(playerid,286);
}
}
Hoffe auf schnelle Antwort.
Mfg