4 errors HELP NOT FIXED YET -
[KML]Dabug - 12.04.2009
Here is the code
pawn Код:
public OnPlayerSelectedMenuRow(playerid, 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;
}
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(177) : error 014: invalid statement; not in switch
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(177) : warning 215: expression has no effect
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(177) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(177) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(177) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: 4 errors HELP -
HydraX - 12.04.2009
which one is line 177?
Re: 4 errors HELP -
[KML]Dabug - 12.04.2009
Sorry try this errors
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(185) : error 014: invalid statement; not in switch
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(185) : warning 215: expression has no effect
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(185) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(185) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(185) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: 4 errors HELP -
[KML]Dabug - 12.04.2009
INFO: THIS IS 185 case 0:{
Re: 4 errors HELP -
HydraX - 12.04.2009
let me see the code for 187
Re: 4 errors HELP -
[KML]Dabug - 12.04.2009
185 case 0:{
186 if(gClass[playerid] == 287) {
187 SetPlayerInterior(playerid, 0);
188 SetPlayerVirtualWorld(playerid, 0);
189 SetPlayerPos(playerid,2785.6580,-2454.6072,13.6342);
etc }
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.007

;
}
return 1;
}
Re: 4 errors HELP -
13th - 12.04.2009
Код:
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.
Re: 4 errors HELP -
[KML]Dabug - 12.04.2009
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
Re: 4 errors HELP -
Nubotron - 12.04.2009
But not same errors. Read Pawn manual!
Re: 4 errors HELP -
[KML]Dabug - 12.04.2009
Umm where can i read that