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(playerid, params[])
{
    if(
PlayerInfo[playerid][Admin] < 2) return ERROR(playerid, "Vi ne mozete korisiti ovu komandu!");
    new 
igrac, vw, string1[80], string2[60];
    if(
sscanf(params, "ud", igrac, vw)) return KORISTI(playerid, "/setvw [playerid/dio imena] [vw id]");
    
SetPlayerVirtualWorld(igrac, vw);
    
format(string1, sizeof(string1), S_SRVBOJA, "Info: "S_BIJELA"Uspjesno ste postavili virtualworld %d igracu %s!", vw, GetName(igrac));
    
SCM(playerid, -1, string1);
    
format(string2, sizeof(string2), S_SRVBOJA, "Info: "S_BIJELA"Admin vam je podesio virtualworld %d!", vw);
    
SCM(igrac, -1, string2);
    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