18.04.2015, 14:46
I'm Making Dialog spawn with random skin... but when compiled.. i got the errors:
Here's my full code.. Please fix this for me and yes, i will rep!
Код:
D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(400) : error 001: expected token: "-identifier-", but found "-integer value-" D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(401) : warning 212: possibly unintended bitwise operation D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402) : error 001: expected token: ")", but found "-integer value-" D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402) : error 029: invalid expression, assumed zero D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402) : warning 213: tag mismatch D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402 -- 403) : warning 212: possibly unintended bitwise operation D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402 -- 403) : warning 212: possibly unintended bitwise operation D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(402 -- 403) : warning 215: expression has no effect D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(403) : error 001: expected token: ";", but found ")" D:\Barang2\sa-mp\Khausar Server SA-MP\gamemodes\khausargamemode.pwn(403) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
public OnPlayerEnterClassSelection(playerid) { //Now show your dialogs here: ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is your genre?", "Male\nFemale", "Select", "Quit"); return 0;//returning 0, the player will go to spectate screen }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid==1) { if(!response) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is your genre?", "Male\nFemale", "Select", "Quit"); if(listitem==0) { new bool:Success; while(!Success) { //Line 400 new skin=random(300); //Line 401 if(skin<9 || (skin>13 && skin<39 && skin!=31) || (skin>41 && skin<53) || (skin>56 && skin<63) || (skin>65 & skin<75 && skin!=69) || (skin>77 && skin<87 && skin!=85) //Line 402 || (skin>93 && skin<129) || (skin>131 && skin<138) || (skin>141 && skin<150 && skin!=145 skin!=148) || (skin>152 && skin<190 && skin!=157 && skin!=169 && skin!=172 && skin!=178) || skin==200 || (skin>201 && skin<214 & skin!=205 && skin!=207 && skin!=211) //Line 403 || skin==217 || (skin>219 & skin<224) || (skin>226 && skin<231) || (skin>233 & skin<237) || (skin>238 && skin<243) || (skin>246 && skin<256 && skin!=251) || (skin>257 && skin!=263 && skin!=298)) Success=true; if(Success) { SpawnPlayer(playerid); SetPlayerSkin(playerid, skin); } } } if(listitem==1) { new bool:Success=true; while(!Success) { new skin=random(300); if(skin<9 || (skin>13 && skin<39 && skin!=31) || (skin>41 && skin<53) || (skin>56 && skin<63) || (skin>65 & skin<75 && skin!=69) || (skin>77 && skin<87 && skin!=85) || (skin>93 && skin<129) || (skin>131 && skin<138) || (skin>141 && skin<150 && skin!=145 skin!=148) || (skin>152 && skin<190 && skin!=157 && skin!=169 && skin!=172 && skin!=178) || skin==200 || (skin>201 && skin<214 & skin!=205 && skin!=207 && skin!=211) || skin==217 || (skin>219 & skin<224) || (skin>226 && skin<231) || (skin>233 & skin<237) || (skin>238 && skin<243) || (skin>246 && skin<256 && skin!=251) || (skin>257 && skin!=263 && skin!=298)) Success=false; if(Success) { SpawnPlayer(playerid); SetPlayerSkin(playerid, skin); } } } } return 1; }