SA-MP Forums Archive
So much errors.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: So much errors.. (/showthread.php?tid=523431)



So much errors.. - YanLanger - 02.07.2014

D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(69) : warning 217: loose indentation
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(74) : warning 217: loose indentation
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(82) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(83) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(84) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(86) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(8 : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(90) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(91) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(92) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : error 002: only a single statement (or expression) can follow each "case"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : error 001: expected token: ")", but found "{"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 001: expected token: ";", but found "case"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 014: invalid statement; not in switch
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : warning 215: expression has no effect
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 001: expected token: ";", but found ":"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : fatal error 107: too many error messages on one line

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


6 Errors.


Re: So much errors.. - Parallex - 02.07.2014

Are we meant to guess your code?


Re: So much errors.. - KayJ - 02.07.2014

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(69) : warning 217: loose indentation
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(74) : warning 217: loose indentation
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(82) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(83) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(84) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(86) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(8 : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(90) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(91) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(92) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : error 002: only a single statement (or expression) can follow each "case"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : warning 202: number of arguments does not match definition
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(159) : error 001: expected token: ")", but found "{"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 001: expected token: ";", but found "case"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 014: invalid statement; not in switch
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : warning 215: expression has no effect
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : error 001: expected token: ";", but found ":"
D:\Users\Yan\Desktop\Samp server\gamemodes\LSGW.pwn(160) : fatal error 107: too many error messages on one line

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


6 Errors.
Put CODE in your message and show us the code where you are getting and

Quote:
Originally Posted by BenJackster
Посмотреть сообщение
Are we meant to guess your code?



Re: So much errors.. - YanLanger - 02.07.2014

}
switch(SetPlayerTeam(playerid) { // Get player's skin, and check it
case 287..0 : { // Grove Street OGs Skins, I don't know what you have in your script
SetPlayerTeam(playerid, TEAM_ARMY);
SetPlayerColor(playerid, COL_BROWN);
}


Re : So much errors.. - mirou123 - 02.07.2014

Try GetPlayerTeam

Код:
switch(GetPlayerTeam(playerid))
{ 
     case 0 .. 287: { // Grove Street OGs Skins, I don't know what you have in your script
     SetPlayerTeam(playerid, TEAM_ARMY);
     SetPlayerColor(playerid, COL_BROWN);
}



Re: So much errors.. - YanLanger - 02.07.2014

Nope still errors.


Re: So much errors.. - KayJ - 02.07.2014

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
}
switch(SetPlayerTeam(playerid) { // Get player's skin, and check it
case 287..0 : { // Grove Street OGs Skins, I don't know what you have in your script
SetPlayerTeam(playerid, TEAM_ARMY);
SetPlayerColor(playerid, COL_BROWN);
}
Tell me teams + colors in pm


Re : So much errors.. - mirou123 - 02.07.2014

Actually try this:

Код:
switch(GetPlayerTeam(playerid))
{ 
     case 0 .. 287: SetPlayerTeam(playerid, TEAM_ARMY), SetPlayerColor(playerid, COL_BROWN);
}



Re: So much errors.. - YanLanger - 02.07.2014

SturtIndia has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

If you are trying to send this message to multiple recipients, remove SturtIndia from the recipient list and send the message again.


Re: Re : So much errors.. - YanLanger - 02.07.2014

Quote:
Originally Posted by mirou123
Посмотреть сообщение
Actually try this:

Код:
switch(GetPlayerTeam(playerid))
{ 
     case 0 .. 287: SetPlayerTeam(playerid, TEAM_ARMY), SetPlayerColor(playerid, COL_BROWN);
}
Nope