31.12.2015, 18:15
Why are you declaring a new variable for the distance? Seems redundant to me. Your syntax for the strcmp function is wrong.
You're declaring numbers as variables. Not possible.
Read: https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
PHP код:
if(strcmp(cmdtext, "/radiopos", true) == 0)
// Or
if(!strcmp(cmdtext, "/radiopos", true))
PHP код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayAudioStreamForPlayer(playerid, "URL", x, y, z, 20.0, 1);