Detaljan opis problema: Pravim multilanguage skriptu ali nalazi mi errore 😄
Dio skripte:
Znaci sve je lepo definirano:
// Jazik na igrac
enum pInfo
{
language
}
new PlayerInfo;
// Definiranje na DIALOG
#define DIALOG_LANG 1 // Dialog za izbiranje jazik
Pa kad se igrac konektuje pokazuje mu dialog:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,DIALOG_LANG,DIALOG_STYLE_LIST,"Language","English\nMacedonian","Select","Exit");
return 1;
}
pa ispod ondialogresponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG_LANG)
{
switch(listitem)
{
case:0 // LINE 250
{
SetPVarInt(playerid,"language",1);
}
case:1
{
SetPVarInt(playerid,"language",2);
}
}
return 1;
}
return 1;
}
ali nalazi mi ove errore:
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(250) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(250 -- 251) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(254) : warning 217: loose indentation
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(254) : error 014: invalid statement; not in switch
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(254) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(254 -- 255) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(254 -- 255) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.sta nevalja ?
