Using format in Stock
#1

I want to Create A new stock like this:

SendClientStringMessage(playerid, color, message, formats);

I got this:
pawn Код:
stock SendClientStringMessage(playerid, color, const format[], {Float,_}:...)
{
    new constmsg[128];
    format(constmsg, sizeof(constmsg), const format, {Float,_}:...); // line 238
    SendClientMessage(playerid, color, constmsg);
}
But it's not working!
Erros/Warnings:

Код:
(238) : error 012: invalid function call, not a valid address
(238) : warning 215: expression has no effect
(238) : warning 215: expression has no effect
(238) : error 029: invalid expression, assumed zero
(238) : warning 215: expression has no effect
(238) : error 017: undefined symbol "Float"
(238) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Using format in Stock - by CAR - 09.07.2010, 13:58
Re: Using format in Stock - by Grim_ - 09.07.2010, 13:59
Re: Using format in Stock - by CAR - 09.07.2010, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)