18.07.2011, 17:55
I have found this:
Test 1 shows Hello, but Test 2 - Bye.
Is it supposed to be? I thought 'var' will be stored as 'text' and while i dont change 'text' to something else it will be always 'Hello'.
pawn Код:
new var[20];
public OnPlayerConnect(playerid)
{
format(var,sizeof(var),"Hello");
OnPlayerStartGame(playerid,var);
return 1;
}
forward OnPlayerStartGame(playerid,text[])
{
printf("Test 1: %s",text);
format(var,sizeof(var),"Bye");
printf("Test 2:%s",text);
return 1;
}
Is it supposed to be? I thought 'var' will be stored as 'text' and while i dont change 'text' to something else it will be always 'Hello'.