Skripta koju koristim:GF
Detaljan opis problema: Ubacio sam komandu /radio u dijalogu i sada mi izbacuje errore :S
Dio skripte:
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(28959) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(28959) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : error 004: function "Itter_OnGameModeInit" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : error 004: function "OnGameModeExit" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : error 004: function "OnVehicleSpawn" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : error 004: function "OnDialogResponse" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29426) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29430) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29434) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29436) : error 017: undefined symbol "listitem"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29459) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29461) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29463) : error 017: undefined symbol "inputtext"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29485) : error 017: undefined symbol "inputtext"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29499) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29501) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29515) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29517) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29519) : error 017: undefined symbol "inputtext"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29532) : error 017: undefined symbol "inputtext"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
switch(dialogid)
{
case DIALOG_RADIO:
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "Odustao si od slusanja radioa!");
}
if(response)
{
switch(listitem)
{
case 0:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325e/");
}
case 1:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/3254/");
}
case 2:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325j");
}
case 3:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325u");
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
switch(dialogid)
{
case DIALOG_RADIO:
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "Odustao si od slusanja radioa!");
}
if(response)
{
switch(listitem)
{
case 0:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325e/");
}
case 1:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/3254/");
}
case 2:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325j");
}
case 3:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325u");
}
}
}
}
}
return 1;
}
??
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(28959) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(28959) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29018) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29023) : error 004: function "Itter_OnGameModeInit" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29382) : error 004: function "OnGameModeExit" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29389) : error 004: function "OnVehicleSpawn" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29420) : error 004: function "OnDialogResponse" is not implemented
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29426) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29430) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29434) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29436) : error 017: undefined symbol "listitem"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29424) : warning 204: symbol is assigned a value that is never used: "sendername"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29423) : warning 204: symbol is assigned a value that is never used: "playername"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29422) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29422 -- 29464) : warning 225: unreachable code
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29422 -- 29464) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29422 -- 29466) : error 017: undefined symbol "response"
C:\Documents and Settings\Mirnes\Desktop\Geforce original\gamemodes\Geforce.pwn(29422 -- 29466) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
19 Errors.
defini sta ti se trazi, a ako imas to vec definisano stavi ovako switch(dialogid)
{
case DIALOG_RADIO:
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "Odustao si od slusanja radioa!");
}
if(response)
{
switch(listitem)
{
case 0:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325e/");
}
case 1:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/3254/");
}
case 2:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325j");
}
case 3:
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325u");
}
}
return 1;
}
evo ;)
if(dialogid == DIALOG_RADIO)
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "Odustao si od slusanja radioa!");
}
if(response)
{
if(listitem == 0)
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325e/");
}
if(listitem == 1)
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/3254/");
}
if(listitem == 2)
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325j");
}
if(listitem == 3)
{
slusaradio[playerid] = 1;
PlayAudioStreamForPlayer(playerid,"http://picosong.com/325u");
}
}
}
Jel imas sve Streamere ?