SA-MP Forums Archive
Message isnt visible for other players! - 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: Message isnt visible for other players! (/showthread.php?tid=356811)



Message isnt visible for other players! - Spike Cena - 04.07.2012

Again me l have this for San Fierro Airport (SFA) cmd:
pawn Код:
CMD:sfa(playerid,params[]) {
    if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
    CarSpawner(playerid,522);
    TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
    tseconds[playerid] = 6;
    format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
    if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
    vCount[playerid] = 1;
    Tx[playerid] =-1649.8623;
    Ty[playerid] =-228.9695;
    Tz[playerid] =14.1440;
    Ti[playerid] = 0;
    format(telestring,43,"~R~San ~G~Fierro ~B~Airport!");
    new msg[500], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(msg, sizeof(msg), "{251BE0}%s {3CE01B}Just {FA0C24}Teleported To {FAFA0C}San {FAFA0C}Fierro Airport {FF8000].::/sfa::.)", pname);
    SetTimerEx("setstunt",3000,0,"i", playerid);
    return 1;
}
the message doesent apper to other players that the playr who used cmd has teleported how to fix it?


Re: Message isnt visible for other players! - Spike Cena - 04.07.2012

1 Error
pawn Код:
SATDM_v13.pwn(48151) : error 017: undefined symbol "msg"



Re: Message isnt visible for other players! - Spike Cena - 05.07.2012

lol still same error xD


Re: Message isnt visible for other players! - Spike Cena - 05.07.2012

Fuck sorry l have added SendClientMessageToAll(-1,msg); in 2 diffrent places and l didnt see but its working now thanks


Re: Message isnt visible for other players! - aaronwelsh - 05.07.2012

Quote:
Originally Posted by Xentiarox
Посмотреть сообщение
goto hell and learn to program... kids these days.
Why must people being arrogant cocks to people who are clearly new to programming? he/she is clearly trying to learn hence why they're asking.


Re: Message isnt visible for other players! - aaronwelsh - 05.07.2012

Yeah I agree with what you said there. The reason I don't help out as much as I could on the forums is because sa-mp is full of kids that don't listen. I love helping out but it's hard/frustrating trying to show someone something and they don't listen. But you can tell Spike is actually confused. It's nice you helped him though!