[pomoc] Multi language script

Započeo [IF] mariomako, Maj 03, 2011, 11:25:45 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skriptu koju koristim: gamemode od 0
Detaljan opis problema: Pravim multilanguage skriptu ali nalazi mi errore :D
Dio skripte:

Znaci sve je lepo definirano:
// Jazik na igrac
enum pInfo
{
language
}
new PlayerInfo[MAX_PLAYERS][pInfo];

// 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 ?

poznaticovik


Citat: Michael Westen poslato Maj 03, 2011, 11:37:37 PRE PODNE
Ne ide Case:0 već Case 0:

sredeno hvala, a zasto sada ovaj warningg ?

C:\Documents and Settings\Mome\Desktop\Infinity DM Stunt\gamemodes\infinitygm.pwn(268) : warning 203: symbol is never used: "PlayerInfo"

poznaticovik

Pa ako razumiješ engleski mogao si vidjeti - Symbol is NEVER USED.

Znači da taj simbol nikada nisi iskoristio.

Citat: Michael Westen poslato Maj 03, 2011, 11:46:43 PRE PODNE
Pa ako razumiješ engleski mogao si vidjeti - Symbol is NEVER USED.

Znači da taj simbol nikada nisi iskoristio.

hvala, maknuo sam to i sada nema warninga moze LOCK