Define/stock question
#1

Well should i use , is it just the same or am i stupid?

pawn Code:
stock Error(playerid, string[]) return va_SendClientMessage(playerid, RED_COLOR, "ERROR: {FFFFFF}%s", string);
//

//Then for a command

if(PlayerInfo[pAdmin] < 1) return Error(playerid, "U can't use this command!");

//or just like this
if(PlayerInfo[pAdmin] < 1) return va_SendClientMessage(playerid, RED_COLOR, "ERROR: U can't use this command!");
Reply
#2

Quote:
Originally Posted by ******
View Post
Neither, this function doesn't need to be stock.
So just use this for commands and returns in them?

pawn Code:
va_SendClientMessage(playerid, RED_COLOR, "ERROR: U can't use this command!");
Reply
#3

Quote:
Originally Posted by ******
View Post
I'd suggest you spell "you" correctly, but otherwise yes. However, that's not quite what I meant - the `Error` function doesn't need `stock` before it.
I don't even use this in my script I mean the text, but thanks since I already reverted everything into the va_SendClient.. I'll leave it like that, Thanks !
Reply
#4

Quote:
Originally Posted by ******
View Post
I'd suggest you spell "you" correctly
I'd suggest you spell "why" correctly
Reply
#5

Quote:
Originally Posted by IdonTmiss
View Post
I don't even use this in my script I mean the text, but thanks since I already reverted everything into the va_SendClient.. I'll leave it like that, Thanks !
He's saying you don't need to use the stock keyword. Just create a regular function lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)