27.03.2015, 05:05
C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 844) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 844) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 845) : warning 209: function "OnPlayerRequestClass" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Well, here.
Line 816 - 850:
C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 844) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 845) : warning 209: function "OnPlayerRequestClass" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Well, here.
Line 816 - 850:
Code:
case 32..35: { new name[ MAX_PLAYER_NAME ]; SetPlayerPos(playerid,2752.8835,-2513.6389,25.7914); SetPlayerCameraPos(playerid,2753.1050,-2519.0244,26.6926); SetPlayerCameraLookAt(playerid,2752.8835,-2513.6389,25.7914); SetPlayerFacingAngle(playerid,180.0); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~[RESTRICTED] Men In Black", 3000, 3); ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1); if(strfind(name,"[MiB]",true) != -1) { SendClientMessage(playerid, HOODLUMS_COLOR, "You have spawned as a official Men In Black clan member."); return 1; } } case 36..39: { new name[ MAX_PLAYER_NAME ]; SetPlayerPos(playerid,1262.5465,-1260.1057,13.2015); SetPlayerCameraPos(playerid,1265.7855,-1262.5286,13.2771); SetPlayerCameraLookAt(playerid,1262.5465,-1260.1057,13.2015); SetPlayerFacingAngle( playerid,230.0 ); GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~[RESTRICTED] Double X Factors", 3000, 3 ); ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 ); if(strfind(name,"[X_X]",true) != -1) { SendClientMessage(playerid, WORKERS_COLOR, "You have spawned as an official X Factors clan member."); return 0; } } return 1; } //============================================================================== public OnPlayerRequestSpawn(playerid) { new Name[MAX_PLAYER_NAME], string[256];