SA-MP Forums Archive
setvw - 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: setvw (/showthread.php?tid=616156)



setvw - Micko123 - 01.09.2016

I have this stevw command
PHP код:
CMD:setvw(playeridparams[])
{
    if(
PlayerInfo[playerid][Admin] < 2) return ERROR(playerid"Vi ne mozete korisiti ovu komandu!");
    new 
igracvwstring1[80], string2[60];
    if(
sscanf(params"ud"igracvw)) return KORISTI(playerid"/setvw [playerid/dio imena] [vw id]");
    
SetPlayerVirtualWorld(igracvw);
    
format(string1sizeof(string1), S_SRVBOJA"Info: "S_BIJELA"Uspjesno ste postavili virtualworld %d igracu %s!"vwGetName(igrac));
    
SCM(playerid, -1string1);
    
format(string2sizeof(string2), S_SRVBOJA"Info: "S_BIJELA"Admin vam je podesio virtualworld %d!"vw);
    
SCM(igrac, -1string2);
    return 
1;

Problem is that it won't send message to admin nor player fwhen changing virtual world of player..


Re: setvw - Hunud - 01.09.2016

Do you have any Stock for sending admin messages ?


Re: setvw - Gammix - 01.09.2016

Код:
S_SRVBOJA,
You have to omit that extra comma there in your format.


Re: setvw - Micko123 - 01.09.2016

Thanks man. It was problem with comma