4 errors HELP NOT FIXED YET
#8

Quote:
Originally Posted by 13th
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	switch( row )
	{
		case 0:
			if(gClass[playerid] == 287) {
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,2785.6580,-2454.6072,13.6342);
			}
			else if(gClass[playerid] == 286) {
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,1641.8352,-2331.0767,13.5469);
			}
			else if(gClass[playerid] == 285) {
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid, 0);
				SetPlayerPos(playerid,1131.6797,-2037.4613,69.0078);
			}
	}

	return 1;
}
although you probably want to check which menu player is in, and if it only has row 0, you could just use if( row == 0 ) instead of switch.
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(187) : error 017: undefined symbol "gClass"
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(187) : warning 215: expression has no effect
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(187) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(187) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(187) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Still errors
Reply


Messages In This Thread
4 errors HELP NOT FIXED YET - by [KML]Dabug - 12.04.2009, 16:46
Re: 4 errors HELP - by HydraX - 12.04.2009, 16:48
Re: 4 errors HELP - by [KML]Dabug - 12.04.2009, 16:50
Re: 4 errors HELP - by [KML]Dabug - 12.04.2009, 16:51
Re: 4 errors HELP - by HydraX - 12.04.2009, 16:53
Re: 4 errors HELP - by [KML]Dabug - 12.04.2009, 16:55
Re: 4 errors HELP - by 13th - 12.04.2009, 16:56
Re: 4 errors HELP - by [KML]Dabug - 12.04.2009, 16:59
Re: 4 errors HELP - by Nubotron - 12.04.2009, 17:05
Re: 4 errors HELP - by [KML]Dabug - 12.04.2009, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)