[Pawn] Not sending an error message - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Not sending an error message (/showthread.php?tid=1847) |
Not sending an error message - Axitz - 2021-04-07 I have this problem when I use the other method, it does work but if I change it the way I wanted, it doesn't. Please help.? This one does work. PHP Code: if(Vehicles[vehicleid][impounded] == 1) return SendClientMSG(playerid, COLOR_RED, "{ff6347}Error: Unable to spawn because it is impounded."); This one doesn't work. No Idea why. PHP Code: if(Vehicles[vehicleid][impounded] == 1) return SendClientMSG(playerid, COLOR_RED, "{ff6347}Error: Unable to spawn %s (ID: %d) because it is impounded.",GetVehicleName(Vehicles[vehicleid][vrID]), vehicleid); RE: Not sending an error message - Radical - 2021-04-07 post your SendClientMSG function. RE: Not sending an error message - Axitz - 2021-04-07 (2021-04-07, 04:26 PM)Radical Wrote: post your SendClientMSG function. PHP Code: stock SendClientMSG(playerid, color, fstring[], {Float, _}:...) RE: Not sending an error message - destiezk - 2021-04-07 Code: #define SendClientMessageFormatted(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); SendClientMessage(%0,%1,_string);} while(FALSE) Try this. RE: Not sending an error message - Pinch - 2021-04-07 Believe me and just replace your code with this one if you have YSI included: Code: if(Vehicles[vehicleid][impounded] == 1) return va_SendClientMessage(playerid, COLOR_RED, "{ff6347}Error: Unable to spawn %s (ID: %d) because it is impounded.",GetVehicleName(Vehicles[vehicleid][vrID]), vehicleid); RE: Not sending an error message - Axitz - 2021-04-08 I don't use YSI. |